contao/core

Wrong assets and files loading when disabling page alias usage

goransleko opened this issue · 1 comments

Hello, I am using Contao 3.5.3 and I want to change my site to use engine friendly urls. I have enabled Rewrite URLs, disabled Disable page alias usage in Front end configuration settings and created default .htaccess file.

When I load my page with single url parameter (mysite.com/home), everything works fine, as it's loading assets and files from correct location (mysite.com/assets, mysite.com/files). Problem starts when adding second parameter (mysite.com/home/second), then it's loading assets and files from wrong location (mysite.com/home/assets, mysite.com/files/assets).

How should I fix that? I've been trying to set absolute paths for assets and files, but don't know really where to set it? Or should I set it in .htaccess?

xchs commented

These kinds of questions should be posted on the community forum.