Skip to content

Conversation

@joverlee521
Copy link
Contributor

@joverlee521 joverlee521 commented Sep 8, 2025

Description of proposed changes

Replaces div styled to look like links with anchor elements so that behavior such as opening links in a new tab work as expected.

Although the default SplashContent component no longer uses the dispatch and changePage props, I'm keeping them in the parent Splash component to prevent breaking changes in the customizable splash component API.

Resolves #2008

Checklist

Replaces div styled to look like links with anchor elements so that behavior 
such as opening links in a new tab work as expected.

Although the default `SplashContent` component no longer uses the `dispatch` and 
`changePage` props, I'm keeping them in the parent `Splash` component to prevent
breaking changes in the customizable splash component API.

Resolves <#2008>
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-splash-links-gvhlsstzm September 8, 2025 19:17 Inactive
Copy link
Member

@corneliusroemer corneliusroemer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks! I tested on the preview and it works!

<li key={requestPath}>
<div
style={{color: "#5097BA", textDecoration: "none", cursor: "pointer", fontWeight: "400", fontSize: "94%"}}
onClick={() => dispatch(changePage({path: requestPath, push: true}))}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note from a similar PR nextstrain/nextstrain.org#773 (comment):

The behaviour will be a little different -- dispatching stays within the SPA, whereas links will go to a new URL, fetch the auspice HTML entrypoint, fetch the auspice JS (cache hit), reparse the JS and so on.

@joverlee521 joverlee521 merged commit 01c7ec8 into master Sep 9, 2025
14 checks passed
@joverlee521 joverlee521 deleted the splash-links branch September 9, 2025 17:56
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.

Auspice doesn't use href for dataset links, meaning cmd+click doesn't open new tab

7 participants