Clicking on the login link in navigation while already on login page shouldn't stack ?next= links
Recommended skills:
- JavaScript
The link behind the login button in the navigation bar actually is different for each page, namely, it leads to: /login?next=<path of the page where you currently are>
, e.g. /login?next=/fachschaftssitzung
when you are currently on the page /fachschaftssitzung
.
The idea behind this is that you are redirected back to where you came from after a successful login.
Problem: On the /login
page, the link behind the login nav button leads to, you guessed it, /login?next=login
. On that page, the link leads to /login?next=/login?next=login
. After clicking the button for a while, you amass quite the URL.
This is a bit ugly and should be fixed. When you are on the login page and you click the login navigation link again, the address should probably just stay the same.