while creating dynamic navigation using prepared snippet I have encountered strange problem. If I have page for example: myweb.com/page everyhing is ok. But macro navigates to myweb.com/page/ and which is same page but CSS is not applied. I have no idea why this is happening.
CSS styling is missing with page name + "/"
Hello,
while creating dynamic navigation using prepared snippet I have encountered strange problem. If I have page for example: myweb.com/page everyhing is ok. But macro navigates to myweb.com/page/ and which is same page but CSS is not applied. I have no idea why this is happening.
CSS files are included in Master template.
Thanks.
Hi Filip,
Can you post a snippet of your template showing how you are including the CSS file? That may help to diagnose the problem...
- Rob.
Hello Rob,
of course:
<link href="css/style.css" rel="stylesheet">
Hi Filip,
looks like your issue is that the reference to the css file is relative to the current url, so you'll want to change it from this:
css/style.css
to this:
/css/style.css
And you should be good.
- Rob.
Hello Rob,
it did not occured to me that this could be a problem. Adding / before css solved the issue. Thanks.
is working on a reply...