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

siteForUrl: Bugfix - ignore query and search from input URL #655

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

apepper
Copy link
Contributor

@apepper apepper commented Oct 17, 2024

@apepper apepper requested a review from dcsaszar October 17, 2024 08:59
@apepper apepper force-pushed the siteForUrl_ignores_hash_and_query branch from 0920fc3 to 9c02c87 Compare October 17, 2024 09:00
@dcsaszar dcsaszar self-assigned this Oct 18, 2024
Comment on lines +38 to +40
const parsedUrl = new URL(fullUrl)
const url = `${parsedUrl.origin}${parsedUrl.pathname}`

Copy link
Contributor

Choose a reason for hiding this comment

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

  •  The easier fix is to include # in the language detection regex. WDYT?
`^${getBaseAppUrl()}\\/(?<lang>[a-z]{2}(-[A-Z]{2})?)([?/#]|$)`,

@dcsaszar dcsaszar removed their assignment Oct 21, 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