Pregunta

When I run docpad run, the docpad server redirects links to files with an .html extension to the clean urls. At this point, I don't have the cleanurls plugin installed, but I used it earlier in the development process.

E.g. localhost:9778/de.html redirects to localhost:9778/de which returns "Not Found".

The repo I'm working on is odl.docpad.

Thanks in advance!

¿Fue útil?

Solución 2

The Problem solved itself. I have absolutely no idea if this was just some random quirk or if I changed something that fixed it. Thanks for the help anyway.

EDIT: Apparently the Problem was that browsers cache 301 Redirects (thanks to hypercube for pointing it out). More Information here: http://www.electrictoolbox.com/google-chrome-clear-301-redirect/.

Otros consejos

Perhaps when you were using the cleanurls plugin you did a static environment generate/run? In which case you will have a lot of alias html files placed in your output directory. Running docpad clean or rm -Rf out then doing another generate/run should fix the issue if this is the case.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top