Currently when on the /embed/preview path the url param page only works in conjunction with browserPreview.
Example
How we want it to work:
For projects with more than one page in the project obtained from the API we want to be able to use the page url param to toggle what page we load
e.g. the egypt project we want to be able to set page to History.html like thiswithout the browserPreview url param.
How we don't want it to work:
Setting browserPreview to true uses local storage meaning someone can go to the project in the editor, make a change and the embed will also change in the projects site.
e.g.
visit the embedded path with both url params (e.g. this) - the right page is loaded
visit the embedded path with page but without browserPreview (e.g. here) - index.html is loaded because new.html only exists in local storage and not the API obtained version of the project
Currently when on the
/embed/preview
path the url parampage
only works in conjunction withbrowserPreview
.Example
How we want it to work:
page
url param to toggle what page we load e.g. the egypt project we want to be able to setpage
toHistory.html
like this without thebrowserPreview
url param.How we don't want it to work:
browserPreview
totrue
uses local storage meaning someone can go to the project in the editor, make a change and the embed will also change in the projects site. e.g.new.html
)page
but withoutbrowserPreview
(e.g. here) -index.html
is loaded becausenew.html
only exists in local storage and not the API obtained version of the project