Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

etemi
Copy link
Contributor

@etemi etemi commented Jun 11, 2023

Fixes #48627 NavLink component is active on wrong path

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Summary of the changes (Less than 80 chars)

Description

The current code just uses char.IsLetterOrDigit to detect separator characters. I added additonal characters to check whether the given character is an unreserved character.

Fixes #48627

@etemi etemi requested a review from a team as a code owner June 11, 2023 20:24
@ghost ghost added area-blazor Includes: Blazor, Razor Components community-contribution Indicates that the PR has been added by a community member labels Jun 11, 2023
@ghost
Copy link

ghost commented Jun 11, 2023

Thanks for your PR, @etemi. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@etemi
Copy link
Contributor Author

etemi commented Jun 11, 2023

@dotnet-policy-service agree

@mkArtakMSFT
Copy link
Contributor

Thanks for your PR, @etemi.
Looks like you've sent two PRs for the same issue. Should the other one be closed: #48713 ?

@etemi
Copy link
Contributor Author

etemi commented Jun 13, 2023

Hi @mkArtakMSFT

I'm not the author of the other PR. @adanmaftei created the other PR first: #48713
This (my) PR was created later and is a different solution.

So it is up to you to decide if any of the proposed solution fits your needs.
If there should only be one PR per issue feel free to close mine as I created my PR later.

Thanks

@mkArtakMSFT
Copy link
Contributor

Ah, thanks for clarifying. I somehow got lost in the comments and missed the author.

Copy link
Member

@MackinnonBuck MackinnonBuck left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution, @etemi!

I've just added some E2E tests to validate the change.

@MackinnonBuck MackinnonBuck merged commit d7cdc21 into dotnet:main Jun 14, 2023
@ghost ghost added this to the 8.0-preview6 milestone Jun 14, 2023
@etemi etemi deleted the issue-48627 branch June 15, 2023 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blazor NavLink component is active on wrong path
3 participants