feat/dossiers-ngi: dated tip/at bar keeps caller path on edition switch

This commit is contained in:
Hernâni Marques 2026-10-10 00:49:11 +02:00
parent 197e0ab19a
commit 37ac6a2171
No known key found for this signature in database
10 changed files with 303 additions and 7 deletions

View file

@ -19,7 +19,10 @@
handle @use {
header Set-Cookie "tdpd_edition={re.use.1}; Path=/; Max-Age=31536000; SameSite=Lax"
header Cache-Control "private, no-store"
redir * / 302
# Keep the caller's path (?next=). Never bounce to /. No next → bar page.
@next query_regexp next ^(/|/[^/].*)$
redir @next {query.next} 302
redir * /_cascade/ 302
}
handle /_cascade/* {