Copied to clipboard

Flag this post as spam?

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


  • Ask Sejsbo 12 posts 82 karma points
    Mar 06, 2024 @ 00:17
    Ask Sejsbo
    0

    IRedirectUrlService.GetMostRecentRedirectUrl fails after security patch

    Hi, I recently upgraded my umbraco site from 8.15.1 to 8.18.11, because I need to comply with a security update.

    And then I all of a sudden had a lot of issues with my redirects. Both skybrud and url redirect management ones.

    I resolved some of the issues, but others persist. And I have not realized why.

    I have this line of code:

    var redirectRule = _redirectUrlService.GetMostRecentRedirectUrl(requestRoute, publishedRequest.Culture.Name);
    

    Where "requestRoute" is something like this ""3631/path/to/item". So {id}/{path}.

    When the site is not upgraded yet, a redirect is returned from the method. But when it is upgraded, this method returns null, without much else info.

    Does anyone know why this may be?

Please Sign in or register to post replies

Write your reply to:

Draft