Skip to content

Commit

Permalink
feat: flag to toggle trailing / for arial-current
Browse files Browse the repository at this point in the history
- Implement handling of situation where a non-root href with a trailing
  slash only matching exact trailing slash and not the other version,
  for example, an `href="/item/"':

  - location="/item" will not match;
  - location="/item/" will match, and thus aria-current="page" set.

- Relevant comment in test has been amended to suggest that there may be
  another solution where only the immediate parent location should have
  the flag set.
  • Loading branch information
metatoaster committed Aug 8, 2024
1 parent baa2d6d commit 014034a
Showing 1 changed file with 226 additions and 131 deletions.
Loading

0 comments on commit 014034a

Please sign in to comment.