Skip to content

Conversation

@OskarDamkjaer
Copy link
Contributor

No description provided.

url.pathname = url.pathname.replace(/\/?$/, previewPath)
window.location.href = decodeURIComponent(url.toString())
}
window.open(url.toString(), '_blank')
Copy link
Contributor

Choose a reason for hiding this comment

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

perhaps not completely necessary since we define url ourselves - but we could add noreferrer to here to the options parameter as a general sanitary measure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's good practice so might as well

Copy link
Contributor

@daveajrussell daveajrussell left a comment

Choose a reason for hiding this comment

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

👍

@OskarDamkjaer OskarDamkjaer merged commit ff8ed85 into neo4j:master Jul 29, 2025
13 checks passed
@dpozinen
Copy link

dpozinen commented Sep 1, 2025

hi @OskarDamkjaer I'm a little bit confused - how can I open the preview ui on a standalone local instance after this change?

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.

3 participants