vue-router icon indicating copy to clipboard operation
vue-router copied to clipboard

case-insensitive on isActive property

Open Kyle-Ye opened this issue 2 years ago • 4 comments

Version

3.5.3

Reproduction link

localhost/active-links/abouT

Steps to reproduce

  • Run yarn run dev in the root path of the project
  • Go to http://localhost:8080/active-links/abouT

What is expected?

The "/about" will be treated as active.

What is actually happening?

The "/about" is not treated as active.


Since Vue Router already supports case-insensitive matching for routes themselves. I think it should be the same for the active match to be case-insensitive too.

Kyle-Ye avatar Oct 28 '21 12:10 Kyle-Ye

Provide a valid repro please

posva avatar Oct 28 '21 13:10 posva

I think using a website like CodePen to build a minimal reproducible environment seems to be low-benifit and troublesome because we can directly use the existing example files(repo's /examples/activeLinks folder and so on) of the repo to reproduce. Just run yarn run dev(or node examples/server.js) and go to http://localhost:8080/active-links/abouT will reproduce the issue

Kyle-Ye avatar Oct 28 '21 14:10 Kyle-Ye

Aah, I couldn't guess you were talking about the repository examples!

posva avatar Oct 28 '21 15:10 posva

Aah, I couldn't guess you were talking about the repository examples!

Sorry that I didn't make it clear😂

Kyle-Ye avatar Oct 28 '21 16:10 Kyle-Ye