Copied to clipboard

Flag this post as spam?

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


  • Megha 8 posts 78 karma points
    Mar 31, 2023 @ 10:39
    Megha
    0

    Visitor Redirection based on ip address

    hii... i have to redirect user based on ip address ,for that i get ip address of user and i give the redirection path but it was not returning that url page.

    enter image description here

    it return to current page but i want to redirect on my /ar-sa/career url so please give me the suggestion to do so.

    Thank you..!

  • Marc Goodson 2157 posts 14434 karma points MVP 9x c-trib
    Mar 31, 2023 @ 13:00
    Marc Goodson
    0

    Hi Megha

    Would returning a RedirectResult instead be what you need?

    https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.redirectresult?view=aspnetcore-6.0

    eg

    return Redirect(nexturl); 
    

    regards

    Marc

  • 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.

Please Sign in or register to post replies