Copied to clipboard

Flag this post as spam?

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


  • Anzalna Nazar 8 posts 82 karma points
    Apr 05, 2024 @ 09:30
    Anzalna Nazar
    0

    Page protection issue in Umbraco 13

    Hello everyone,

    I have recently created a project in Umbraco 13 and added some pages. I have also set the "Restrict Public Access" option with the Login and Error pages. enter image description here

    However, when I try to load the page, it gets redirected to the same page where the content gets replaced by the Login page content.

    enter image description here

    To solve this, I need to add the redirect URL.

    Also, the 301 redirection is not working.

    Can anyone help me with this issue?

    Thank you.

  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    Apr 05, 2024 @ 12:34
    Huw Reddick
    0

    when I try to load the page, it gets redirected to the same page where the content gets replaced by the Login page content.

    That is correct, what are you trying to say is wrong exactly?

  • Anzalna Nazar 8 posts 82 karma points
    Apr 08, 2024 @ 06:53
    Anzalna Nazar
    0

    I have added redirection to the login page. So it should redirect to the login page.

    But here, when added redirection, the test page's inner content was replaced by the login page content. The URL is still the test page's URL.

    Like URL is of test page and its content is from login page

  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    Apr 08, 2024 @ 10:18
    Huw Reddick
    0

    It's the default Umbraco behaviour.

  • Anzalna Nazar 8 posts 82 karma points
    Apr 09, 2024 @ 04:30
    Anzalna Nazar
    0

    Thanks!

    I have done it in versions 10 and 12, and it's working fine. (The page gets redirected to the login page). I found the above issue in version 13.

  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    Apr 09, 2024 @ 05:59
    Huw Reddick
    0

    Are you certain you didn't do something different?

    I just fired up an old v10 site and the behaviour is exactly the same as you describe here. If I access a restricted page when not logged in I am redirected to the login page but the URL does not change.

  • Eranga Wijethunga 35 posts 176 karma points
    Oct 30, 2024 @ 21:22
    Eranga Wijethunga
    0

    Have you found any solution for this ?

  • Eranga Wijethunga 35 posts 176 karma points
    Nov 04, 2024 @ 02:15
    Eranga Wijethunga
    0

    This issue has sorted, Issue was not properly managed login method in Umbraco 13 it should be as follow using

    private readonly SignInManager<MemberIdentityUser> _signInManager;
    
    var signInResult = await _signInManager.PasswordSignInAsync(
                viewModel.Email, 
                viewModel.Password, 
                isPersistent: true, 
                lockoutOnFailure: false
            );
    
Please Sign in or register to post replies

Write your reply to:

Draft