JackLot / LearnGit.io

LearnGit.io is a collection of high-quality learning resources.
https://app.learngit.io/
5 stars 0 forks source link

[BUG] Redirect users to /home after login #8

Closed JackLot closed 6 months ago

JackLot commented 6 months ago

Currently when the user logs in using the link on app.learngit.io, they are simply redirected back to the root page (/) and need to click a button to access the learning paths homepage (/home).

The user should be automatically redirected to /home after login without needing to click an extra button. I suspect this is a configuration issue with my auth provider.

JackLot commented 6 months ago

This is fixed. I needed to remove the authenticationCallbackUrl: window.location.href override from the openLogin auth component so that the default redirect (/home) was respected. This parameter can be added back I did want the user to be redirected back to the same page they were on when they logged in, but this will only be useful if different tiers of access are required.