swup / fragment-plugin

A swup plugin for dynamically replacing containers based on rules 🧩
https://swup-fragment-plugin.netlify.app
MIT License
15 stars 1 forks source link

fix: update link to fragment for same url #75

Closed hirasso closed 3 months ago

hirasso commented 3 months ago

Description

Besides a warning if the URL of a fragment targeted by a a[data-swup-link-to-fragment] would already match the current url, that URL was also not being applied to the link. I see no reason why it shouldn't do so anyways. I currently have a more complex project where I needed this.

Drive-By

Checks

github-actions[bot] commented 3 months ago

Playwright test results

passed  12 passed

Details

stats  12 tests across 1 suite
duration  
commit  1c5101e