Problem
On the editor page. Tap the "Tasks"
button. The task gallery should appear.
When the editor has been opened in a separate tab, and clicking Tasks
then nothing happens.
When the editor has been opened with a direct url, then there is nothing in the history, and clicking Back
doesn't do anything.
https://neoneye.github.io/arc/edit.html?dataset=ARC&task=18419cfa
Changing the Tasks
button to link to the index.html
is not the solution, since it discards the vertical scroll position.
Solution
Modify edit.html
, so its Tasks
button always jump to the index.html
page.
If the user previously visited index.html
, then preserve the vertical scroll position.
I guess the ugly solution is something like this.
On the index.html
, when opening the editor, provide an url parameter ala edit.html?from=index
, so that the editor knows that the history.back()
function is available. Immediately after the edit.html
page has opened with the url parameter from=index
, then remove the url parameter, so it doesn't get bookmarked.
When the edit.html
gets opened without the from=index
url parameter, then link to the index.html
page.
Alternative ideas are welcome.