Copied to clipboard

Flag this post as spam?

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


  • Eran Bodokh 11 posts 101 karma points
    Dec 12, 2017 @ 10:00
    Eran Bodokh
    0

    How to prevent the slash added after the # sign

    Basically, I have a website which needs to be accessible, so I implemented something called Skip Links, By pressing tab on the keyboard when entering the page it has been made possible to navigate the page by appending a target to the URL and scrolling to the target.

    I have multiple headings in the page with ids, such as #maincontent, #personalArea and so on.

    To navigate to them i simply navigate to website.com/#mainContent.

    When I try to do that it automatically gets changed to website.com/#/mainContent, and then stays on the current page without scrolling me to the target, I assumed this might have something to do with Umbraco and it's routing though I can say for sure since I haven't encountered this anywhere else.

    How can I disable the automatically added slash preceding the # sign?

  • Nathan Woulfe 422 posts 1580 karma points MVP 3x c-trib
    Dec 18, 2017 @ 06:01
    Nathan Woulfe
    100

    That looks like AngularJs or a similar library taking over your routing - Umbraco won't be doing anything on the frontend.

  • Eran Bodokh 11 posts 101 karma points
    Dec 18, 2017 @ 09:56
    Eran Bodokh
    0

    Yes indeed you are correct, I eventually found that out, I was sure Umbraco had something to do with it.

  • 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