Post-Login Navigation
Add a next parameter to the login URL of an organization to open a
particular page after the user logs in. For example, to send users to the
change password page right after they log in:
# https://<wlp-host>/<organization-slug>/login?next=%2F<organization-slug>%2Fchange-password
https://wifi.openwisp.io/default/login?next=%2Fdefault%2Fchange-password
Supported Destinations
The destination must be a path of the same organization, one of:
/status/change-password/change-phone-number/payment/process/payment/draft/payment/gateway/payment/success/payment/failed
Any other value (external URLs, other organizations, unknown pages, query strings or fragments) is ignored and the user follows the usual login navigation.
Compact Links
To keep links short, the following aliases are supported on the login URL:
pay: short form ofpayment/processof the organization, usable as the value ofnextor through the shorternparameter (for examplen=pay).naccepts only aliases.sid: short form of the passwordless authentication token parameter (sesameby default, seepasswordless_auth_token_name).
https://wifi.openwisp.io/default/login?n=pay&sid=<token>
This is equivalent to:
https://wifi.openwisp.io/default/login?next=%2Fdefault%2Fpayment%2Fprocess&sesame=<token>
Important
n and sid can be used independently. If both a long and a
short parameter are present, the long one is used (next over
n, the configured token parameter over sid). Unknown, empty or
repeated values are ignored. The token is never forwarded to the
destination and all these parameters are removed from the address bar
after login.
Behavior
nextdoes not bypass authentication: the user must log in first.Mandatory steps (completing the signup, paying with a bank card, verifying the phone number, changing an expired password) always take precedence over
next.The destination is opened only after the captive portal login is completed. If the captive portal login fails,
nextis discarded.If the user is already logged in, the login page redirects to the status page as usual and
nextis ignored.nextis valid for 30 minutes and for the browser tab in which the login page was opened.