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 16 posts 86 karma points
    1 week ago
    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 1537 posts 6812 karma points MVP 5x c-trib
    7 days ago
    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 16 posts 86 karma points
    7 days ago
    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