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!
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.
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?
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
I've checked and I can't reproduce this issue. I'm using this to create the redirect URL:
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.
is working on a reply...
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.