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

chore(header): changed path matching foractive-route prop to also work for relative paths #4396

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

schaertim
Copy link
Contributor

No description provided.

…orks by allowing for usage of relative paths.
@schaertim schaertim linked an issue Jan 8, 2025 that may be closed by this pull request
Copy link

changeset-bot bot commented Jan 8, 2025

🦋 Changeset detected

Latest commit: 6ec861c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@swisspost/internet-header Minor
@swisspost/design-system-documentation Patch
@swisspost/design-system-nextjs-integration Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@swisspost-bot
Copy link
Contributor

swisspost-bot commented Jan 8, 2025

Related Previews

Copy link

sonarqubecloud bot commented Jan 8, 2025

@schaertim schaertim marked this pull request as ready for review January 8, 2025 13:34
@schaertim schaertim requested a review from a team as a code owner January 8, 2025 13:34
@schaertim schaertim requested a review from leagrdv January 8, 2025 13:34
const hash = new URL('https://post.ch/briefe#hash');
const nope = new URL('https://post.de/briefe');
const upper = new URL('https://post.ch/Briefe');
const urls = {
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to have some tests for relative path URLs as well

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.

Header: Improve active route prop comparison
3 participants