Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix back button breaks #841

Merged
merged 3 commits into from
Jan 5, 2020
Merged

Fix back button breaks #841

merged 3 commits into from
Jan 5, 2020

Conversation

joverlee521
Copy link
Contributor

This PR closes #815.

Use existing function chooseDisplayComponentFromURL to determine what to set as the displayComponent instead of hard coding to "datasetLoader".

This function includes known urls that are hardcoded to display the Auspice splash page and I've added "group" to this list.

In the `changePage` action, use `chooseDisplayComponentFromURL(path)` to
determine what to set as `displayComponent`. This has some hard coded
known url parts that should display the Auspice splash page instead
of a dataset.
The "local" prefix in URLs is left over from a former way of accessing datasets & narratives but is no longer used.
@jameshadfield
Copy link
Member

Thanks @joverlee521, really great to have this bug fixed 🎉 😄 👍

I've added a commit to remove the logic surrounding pathnames starting with "local" which haven't been used in a long time.

In the long run this logic (which is largely specific to nextstrain.org) shouldn't be in the auspice codebase, but this fix is a big improvement.

@jameshadfield jameshadfield merged commit 0868be3 into master Jan 5, 2020
@jameshadfield jameshadfield deleted the fix-back-button-breaks branch January 5, 2020 23:37
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.

Page history broken during navigation
2 participants