Copied to clipboard

Flag this post as spam?

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


  • Jessica 6 posts 36 karma points
    Feb 03, 2014 @ 18:10
    Jessica
    0

    double leading slash in Link to Document

    Today I noticed that my links are cutting out the domain name. Not sure how long this has been going on, but for some reason there is an extra slash at the beginning of all Link to Document for items under Homepage (Homepage has a "/" for its link). 

    Googling hasn't turned up anything, and I am totally stumped. Anyone know why? I'm running 4.7.1.1.

  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 03, 2014 @ 18:39
    Fuji Kusaka
    100

    If you try making use of Manage Hostname do you get something like

    http://mywebsite/news.aspx ? or http://mywebsite//news.aspx ? 
  • Jessica 6 posts 36 karma points
    Feb 03, 2014 @ 19:47
    Jessica
    0

    I wasn't using Manage Hostname. I added the site in Manage Hostname, but nothing changed. I wonder if this is an Umbraco issue, or possible something with IIS?

  • Jessica 6 posts 36 karma points
    Feb 03, 2014 @ 20:33
    Jessica
    0

    Ok, actually the Manage Hostname did work! URLs are now "http://www.site.com//pagename" instead of "//pagename" So not exactly a fix for the double slash, but it fixes the broken link issue. Thanks!

  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 04, 2014 @ 04:30
    Fuji Kusaka
    0

    Hi Jessica,

    One question when you click on the url in the backend itself do you get the url in the address bar with the double slash ?

    http://www.site.com//pagename ? 
  • Simon Dingley 1470 posts 3427 karma points c-trib
    Jan 18, 2017 @ 10:29
    Simon Dingley
    0

    I would like to raise this issue again and want to ask if you ever tracked down the cause? I am seeing this periodically in a site running v7.5.3. The odd thing is that it doesn't affect all nodes and is rectified by a simple publish action.

    It will happen again at some random point in the future as it has done previously so I need to get to the bottom of it as it breaks links on the front end of the site.

    I've created an issue on the tracker for this:

    http://issues.umbraco.org/issue/U4-9401

  • Kenny Burns 173 posts 305 karma points
    Feb 21, 2017 @ 14:14
    Kenny Burns
    0

    I would also like to raise this, as we have this same issue on a site (v 7.5.7)

    If we look in Umbraco, in the properties tab, some of the urls look akin to this: /how-to-help/support-our-campaigns////////// <- (notice the extra slashes)

    This is not always the case and sometimes there are less slashes, sometimes more.

    This is a load balanced site, on Azure and wondering if that might be the cause.

    Anyone who has come across this - please let us know!

    Thanks,

    Kenny

  • Simon Dingley 1470 posts 3427 karma points c-trib
    Feb 21, 2017 @ 14:57
    Simon Dingley
    0

    That's interesting as I think I have only experienced extra leading slashes in the url rather than trailing slashes.

  • David Parr 48 posts 206 karma points
    Jun 13, 2017 @ 14:24
    David Parr
    0

    Facing the same issues as described by Simon. Has anyone found a solution to the above mentioned problem yet?

  • Simon Dingley 1470 posts 3427 karma points c-trib
    Sep 12, 2017 @ 13:13
    Simon Dingley
    0

    This issue is still ongoing - did anyone manage to make any progress on tracking down the source of the issue? It seems to be random (although I doubt in reality it is) but without being able to replicate the problem it's becoming hard to pin down.

  • Simon Dingley 1470 posts 3427 karma points c-trib
    Oct 26, 2017 @ 13:42
    Simon Dingley
    0

    Finally nailed this one after I discovered it was affecting yet another site.

    In the UriUtility class there is a method called UriToUmbraco where if the AddTrailingSlash option is enabled in your config it will basically append a forward slash without first checking if there is already a trailing slash.

    I've submitted a pull request that should correct it.

Please Sign in or register to post replies

Write your reply to:

Draft