Copied to clipboard

Flag this post as spam?

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


  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Aug 23, 2013 @ 13:06
    Dirk De Grave
    0

    Double slash in redirected url

    Stefan,

    Just noticed that redirected url has a double slash at the start...

    http://domain.local//nl/vacatures/lijst/

    Redirect settings: Old url = nl/jobs/bakker.html Redirect url = nl/vacatures/lijst/bakker/

    Have also checked whether adding a slash in front of redirect url would change anything but nope.

    Any ideas?

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Aug 23, 2013 @ 13:09
    Dirk De Grave
    0

    Huh, nevermind, adding a slash in front of Redirect url does generate a double slash in redirected url. If I omit the starting slash, all is fine... My bad!

    Cheers,

    /Dirk

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Aug 23, 2013 @ 13:18
    Stefan Kip
    0

    I've checked and I can't reproduce this issue. I'm using this to create the redirect URL:

    Uri redirectUri = new Uri(redirectUrl.StartsWith("http") ? redirectUrl : string.Format("{0}://{1}{2}/{3}", request.Url.Scheme, request.Url.Host, request.Url.Port != 80 ? string.Concat(":", request.Url.Port) : string.Empty, redirectUrl));
    

    The redirectUrl property should be 'nl/vacatures/lijst/bakker/' here which should result in the right URL without double slash.
    I don't know if you had the 301 Url Tracker installed? If so, is it completely uninstalled?
    You could also enable logging and post the results here so I can have a look.

    I've build in some logging for these kind of situations. Please enable logging by adding an appSetting with key="urlTracker:enableLogging" and value="true" and also set umbracoDebugMode to true. Request the old url and post the logs.

  • 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