Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Filip Nemecek 7 posts 48 karma points
    Jul 21, 2014 @ 21:58
    Filip Nemecek
    0

    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.

  • Robert Foster 440 posts 1684 karma points MVP admin c-trib
    Jul 22, 2014 @ 01:11
    Robert Foster
    0

    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.

  • Filip Nemecek 7 posts 48 karma points
    Jul 22, 2014 @ 05:33
    Filip Nemecek
    0

    Hello Rob,

    of course: <link href="css/style.css" rel="stylesheet">

  • Robert Foster 440 posts 1684 karma points MVP admin c-trib
    Jul 22, 2014 @ 06:33
    Robert Foster
    101

    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.

  • Filip Nemecek 7 posts 48 karma points
    Jul 22, 2014 @ 08:41
    Filip Nemecek
    1

    Hello Rob,

    it did not occured to me that this could be a problem. Adding / before css solved the issue. Thanks.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies