Files
Erwan Leboucher 7fb3ca418a fix(auth): carry the homeserver in the query string instead of the path (#1582)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

A homeserver typed as a full URL landed in the path as
`/login/http%3A%2F%2Fhost`, and the hosting 307-redirects `%2F` to a
real slash, the mangled URL then matched a room route, so after login
you ended up in a fake room named "login".

The homeserver now rides in the query string (`/login?server=...`), old
`/login/<server>` links (incl. SSO/OIDC callbacks) redirect to it, and
auth paths are never kept as an after-login destination.

Fixes #

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-08-07 20:53:15 +00:00
..