Skip to content

fix(preview): preserve preview URL on reload - #751

Open
sdruc-cw wants to merge 1 commit into
iamcco:masterfrom
sdruc-cw:fix-preview-refresh-route
Open

sdruc-cw wants to merge 1 commit into
iamcco:masterfrom
sdruc-cw:fix-preview-refresh-route

Conversation

@sdruc-cw

@sdruc-cw sdruc-cw commented Sep 2, 2026

Copy link
Copy Markdown

Summary

  • keep the browser URL at /page/:bufnr so a refresh reconnects to the correct buffer
  • redirect legacy /:bufnr URLs for compatibility with the existing bundled client
  • redirect the server root to the current buffer preview instead of returning 404

Testing

  • NODE_OPTIONS=--openssl-legacy-provider yarn build-app
  • started the preview server and verified / and /1 redirect to /page/1
  • verified /page/1 returns 200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants