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() #14

Open
apdavison opened this issue Mar 16, 2023 · 0 comments
Open

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

apdavison opened this issue Mar 16, 2023 · 0 comments

Comments

@apdavison
Copy link
Member

(migrated from HumanBrainProject/hbp-validation-framework#299)

appukuttan-shailesh commented on 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>

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

1 participant