fix: serve mixed-case page IDs via case-insensitive subdomain lookup #4

Merged
patillacode merged 2 commits from fix/mixed-case-page-ids into main 2026-05-28 19:07:57 +02:00
Owner

Old IDs generated with token_urlsafe contained uppercase letters (e.g. sRysndGq).
HTTP host headers are case-folded by browsers, so the subdomain arrives lowercase and the case-sensitive DB lookup misses.
Use func.lower() on both sides and resolve the file path from page.id (the stored value) rather than the extracted subdomain.

Old IDs generated with token_urlsafe contained uppercase letters (e.g. sRysndGq). HTTP host headers are case-folded by browsers, so the subdomain arrives lowercase and the case-sensitive DB lookup misses. Use `func.lower()` on both sides and resolve the file path from page.id (the stored value) rather than the extracted subdomain.
fix: serve mixed-case page IDs via case-insensitive subdomain lookup
Some checks failed
CI / test (pull_request) Failing after 16s
9c41f77cf7
Old IDs generated with token_urlsafe contained uppercase letters (e.g. sRysndGq).
HTTP host headers are case-folded by browsers, so the subdomain arrives lowercase
and the case-sensitive DB lookup misses. Use func.lower() on both sides and resolve
the file path from page.id (the stored value) rather than the extracted subdomain.
fix: format
All checks were successful
CI / test (pull_request) Successful in 22s
4eb0d6c9dc
patillacode deleted branch fix/mixed-case-page-ids 2026-05-28 19:08:02 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
patillacode/dropit!4
No description provided.