Skip to content

chore: remove unnecessary checks for location hashes#813

Merged
iisakkirotko merged 1 commit intomasterfrom
10-14-chore_remove_extra_checks_for_hash
Oct 24, 2024
Merged

chore: remove unnecessary checks for location hashes#813
iisakkirotko merged 1 commit intomasterfrom
10-14-chore_remove_extra_checks_for_hash

Conversation

@iisakkirotko
Copy link
Copy Markdown
Collaborator

Hash is never included in window.location.pathname

@maartenbreddels maartenbreddels temporarily deployed to 10-14-chore_remove_extra_checks_for_hash - solara-stable PR #813 October 14, 2024 15:00 — with Render Destroyed
Copy link
Copy Markdown
Collaborator Author

iisakkirotko commented Oct 14, 2024

Copy link
Copy Markdown
Collaborator Author

1 similar comment
Copy link
Copy Markdown
Collaborator Author

Comment on lines -24 to -27
// take of the anchor
if (location.indexOf("#") !== -1) {
location = location.slice(0, location.indexOf("#"));
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

But if you do a hard page navigation with an anchor in it, this will include a hash right?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hash is never included in `window.location.pathname`
@iisakkirotko iisakkirotko force-pushed the 10-14-chore_remove_extra_checks_for_hash branch from 541b4bc to 916e8cf Compare October 22, 2024 15:13
Copy link
Copy Markdown
Collaborator Author

iisakkirotko commented Oct 24, 2024

Merge activity

  • Oct 24, 11:04 AM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Oct 24, 11:05 AM EDT: A user merged this pull request with Graphite.

@iisakkirotko iisakkirotko merged commit 5408089 into master Oct 24, 2024
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.

2 participants