U4-11564 - Redirect URL Management Original URL wrong when adding custom IUrlProvider

Created by Niels Swimberghe 08 Aug 2018, 21:41:56 Updated by Niels Swimberghe 08 Aug 2018, 21:46:56

'''What did you do?''' Create a custom IUrlProvider that overrides the way Urls are generated based for Content Type X. The Url for Content Type X is constructed using its parent URL + Category (Custom prop on Content Item) + UrlName. Next I created a Content Item of Content Type X which generates the Url ''''''/blog/umbraco/just-another-blogpost''''''. Then I renamed the item to "Just Another Blogpost Renamed".

'''What did you expect to happen?''' I expected a Redirect Url to be created with the following values: ''''''/blog/umbraco/just-another-blogpost'''''' => ''''''/blog/umbraco/just-another-blogpost-renamed''''''

'''What actually happened?''' The following Redirect Url was created: ''''''/blog/just-another-blogpost'''''' => ''''''/blog/umbraco/just-another-blogpost-renamed''''''

''''''/blog/just-another-blogpost'''''' would be the correct Url if I didn't add a custom IUrlProvider.

1 Attachments


Niels Swimberghe 08 Aug 2018, 21:46:56

[Here's a gist|https://gist.github.com/SNiels/866b92895bc81db7086c811b7a10033f] with the code for the custom IUrlProvider.

Priority: Normal

Type: Bug

State: Submitted


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.11.1

Due in version:


Story Points: