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

Unable to open link in new tab or deep link #160

Open
steven-rothwell opened this issue Dec 2, 2020 · 0 comments
Open

Unable to open link in new tab or deep link #160

steven-rothwell opened this issue Dec 2, 2020 · 0 comments

Comments

@steven-rothwell
Copy link

steven-rothwell commented Dec 2, 2020

So, if I have the main page of my site www.my-site.com as the main page, I can click a link that routes me to www.my-site.com/items/some-id. This works fine. I can even paste www.my-site.com/items/some-id into the same tab and it correctly take me there. But, if I try to open that link in a new tab or copy and paste (www.my-site.com/items/some-id) into a new tab, it redirects me back to www.my-site.com. I was able to see that this is happening because in the new tab, the very first thing is does is hits my identity server which returns a 302 back to www.my-site.com. That is because in my auth config which inherits from oauth2's AuthConfig, I have the redirectUri set to www.my-site.com. How can I set the redirectUri to be whatever the current uri is? That way, if I am logged in and try to open in a new tab or even if I'm logged out and try to go to a deep link, after logging in, it takes me to that page?

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

1 participant