Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect_to param in auth0 shortcode not working #870

Closed
maxi07 opened this issue Feb 6, 2023 · 4 comments
Closed

redirect_to param in auth0 shortcode not working #870

maxi07 opened this issue Feb 6, 2023 · 4 comments

Comments

@maxi07
Copy link

maxi07 commented Feb 6, 2023

Describe the problem

The auth0 wordpress shortcode redirection param does not work for me.

What was the expected behavior?

I added the redirect_to param into the shortcode to redirect the user to a specific site after successfull authenfication. But after signing in, i get redirected to the main page.

Reproduction

The shortcode used is [auth0 form_title="Please login on my WP blog" redirect_to="https://mycustomsite.com"]. The formtitle is being changed, so the params seem to work in general.

Environment

  • Version of this library used: Login by Auth0 4.5.0
  • Wordpress: 6.1.1
@evansims
Copy link
Member

evansims commented Feb 6, 2023

Hi @maxi07 👋 Thanks for reaching out! So, I've tested the shortcut with 4.5.0, but unfortunately I wasn't able to reproduce the issue you're seeing. In my test:

[auth0 form_title="Please login on my WP blog" redirect_to="https://wordpress.test/homepage"]

Correctly redirects to the URL specified. Can you confirm you are assigning redirect_to to an absolute URL served by the same WordPress site, at the same domain?

@maxi07
Copy link
Author

maxi07 commented Feb 6, 2023

Hi @evansims, no the redirect_to currently points to an external site. Does the redirect param only only work with sites from the same domain?

@evansims
Copy link
Member

evansims commented Feb 6, 2023

Hi @maxi07 — that's correct, the parameter needs to point to a path on the same domain.

@maxi07 maxi07 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 6, 2023
@maxi07
Copy link
Author

maxi07 commented Feb 6, 2023

Thanks, I couldn't find that information in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants