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

Unable to open model page via window.open() #299

Closed
appukuttan-shailesh opened this issue Mar 9, 2021 · 1 comment
Closed

Unable to open model page via window.open() #299

appukuttan-shailesh opened this issue Mar 9, 2021 · 1 comment

Comments

@appukuttan-shailesh
Copy link
Collaborator

appukuttan-shailesh commented Mar 9, 2021

I am trying to open a model catalog entry in a new tab via its URL on the click of a button when using window.open() in JS. For some reason the new window opens and closes immediately.

To reproduce this problem, try this:
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open
It works fine with their example URL.

But the moment I change it to: https://model-catalog.brainsimulation.eu/#model_id.00f2e856-27a8-4b8d-9ec3-4e2581c546e4 the page opens and closes. Happens both on Chrome and Firefox.... and seems to be arising from our app, as other URLs work fine.

Workaround for now is to use anchor tags: <a href={url} target="_blank">...</a>

@apdavison
Copy link
Member

migrated to HumanBrainProject/model-catalog#14

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

No branches or pull requests

2 participants