Copied to clipboard

Flag this post as spam?

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


  • Ramya Devendiran 28 posts 149 karma points
    Jan 24, 2023 @ 12:41
    Ramya Devendiran
    0

    Skybrud Redirects Package

    Our solution is in Umbraco version 10.2.0 and it has custom code that uses ActionFilterAttribute to redirect the urls to correct country culture based on the user location.

    The web page is multiculture site. Skybrud Redirects package is installed to add additional redirect rules (from old url to new url). But this is not working.

    Is the custom redirect preventing the package to run?

  • Nik 1617 posts 7263 karma points MVP 7x c-trib
    Jan 24, 2023 @ 14:31
    Nik
    0

    Hey Ramya,

    Its possible, it depends on the order of things I suspect. Skybrud Redirects happens at the end of the request pipeline.

    It also only kicks in if the request response is returning a 404, so if there is anything that kicks in early that returns any other status code, then Skybrud won't trigger.

    Nik

  • Ramya Devendiran 28 posts 149 karma points
    Jan 24, 2023 @ 14:41
    Ramya Devendiran
    0

    Thanks for the quick response. I will have a check on the 404 status code.

    I have added a custom 404 page in appsettings.json.

    "Error404Collection": [ { "ContentId": 11111, "Culture": "default" } ]

Please Sign in or register to post replies

Write your reply to:

Draft