• So I’m having a problem with redirect behavior when someone clicks on a button.

    The “Join Now” button is supposed to take them to a registration page:
    https://www.bitcoinforbeginners.io/discussions/register/

    However, if someone is already signed up and signed in, then that page provides a 303 redirect.

    Ideally the behavior is that clicking the button would send them to the eventual page where the redirect points to: https://www.bitcoinforbeginners.io/discussions/

    However right now, bc that link is returning a 303 for **signed in** visitors, it is just keeping us on original page and not going anywhere.

    How do I solve that problem?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Reverse the logic.
    For instance, if I go to my WordPress admin page when not signed in, I am redirected to the login page (with a parameter of where to go after). If I go there when signed in, it is shown normally.

    Thread Starter stellarowl12

    (@stellarowl12)

    How do I set up that logic though? PHP, Javascript, something else?

    Mind pointing me in the right direction? ??

    The registration page should take a parameter of where to go after. So instead of just giving a 303 for signed in users, it sends them to the parameter.
    And have two links: Join and Discussion.
    Your pages that are behind the sign in have to check for signed in, don’t they? So that check should go to the registration page (with the parameter set to current page to get back to) if they are not signed in.
    Most plugins that help you do this provide a way to use different links for signed in and not. They also help you show a message like “Sign in to see this content.” or not show the page at all.
    There are membership plugins and forum plugins and registration page plugins.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Special handling of 303 re-direct from external link’ is closed to new replies.