Scope the site preview cookie to the preview route so customization/theme persists on navigation (RND-12191) (#4481)

Co-authored-by: Peter White <1788320+peterwhite@users.noreply.github.com>
This commit is contained in:
Zeno Kapitein
2026-10-07 09:53:30 +02:00
committed by GitHub
parent 2137c2df7b
commit ad6262b6f9
3 changed files with 63 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"gitbook": patch
---
Fix previewed customization and theme overrides being lost when navigating between pages inside the site preview. The preview cookie was scoped to the site's canonical base path instead of the preview route it is actually served under, so the browser dropped it on the next in-preview navigation.