Bug #3354
Gerrit: wrong redirect URL after signing in
0%
Description
It was noticed that after signing in via OpenID you may be returned (from osmocom.org/openid) to an error page (to gerrit.osmocom.org).
How to reproduce?¶
1. Visit some change without being logged in, e.g. https://gerrit.osmocom.org/9661/
2. Go to 'Sign in', and pay you attention at 'href' attr of the link 'Sign in with Osmocom'
3. Click on it, accept auth request at osmocom.org/openid
and then you will be redirected to:
https://gerrit.osmocom.org/#/c/osmo-msc/ /9661/
instead of:
https://gerrit.osmocom.org/#/c/osmo-msc/+/9661/
Quick and dirty solution:¶
Remember I asked you to pay your attention to the link URL?
In this case it would look like this (after URL decoding):
https://gerrit.osmocom.org/login/#/c/osmo-msc/+/9661/?id=https://osmocom.org/openid
You can copy+paste it to a new tab, and get the same result as described above.
But if you change the URL a little bit:
https://gerrit.osmocom.org/login/9661/?id=https://osmocom.org/openid
then the redirect would work fine ;)