Okay
  Public Ticket #4040125
Redirect after login
Closed

Comments

  •  3
    Dominique started the conversation

    Hi,

    I saw on one of the latest release notes that there was an enhancement made when a user is directed to login due to visibility control, that it would take the user back to the page they were viewing.

    - If B2BKing sets a visibility restriction and redirects the user to my account, logging in will now redirect to the desired page.
    

    I've tried this out via and it doesn't seem to be working for me. I have prices hidden + allowing all products to be visible. I added a custom link to the text option laid out in your documentation. When I go click on "Login in to view prices" and login, it just takes me to the my-account page. Am I missing something in my configuration?

  •  2,453
    WebWizards replied

    Hi Dominique,

    Thanks for reaching out about this,

    The automatic redirect after login feature only works when the plugin itself performs the redirect to the login page (which happens when products are set as completely invisible to guests). 

    In your case, since you have products visible but with hidden prices, and you're using a custom "Login to view prices" link, the automatic redirect won't work because the plugin isn't handling the redirect flow. 

     

    We will look at an option to allow this directly via text links for future updates - thank you for the feedback on this,

     

    Kind regards,
    Stefan

  •  3
    Dominique replied

    I see, thanks for the info!