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

Feature: Support fragment visits to the current URL #38

Closed hirasso closed 1 year ago

hirasso commented 1 year ago

Solves https://github.com/orgs/swup/discussions/761#discussioncomment-6683760

Description

Doesn't check for the fragment-url anymore, if route.from and route.to can be considered equal. Unlocks fragment visits if running swup.navigate(swup.getCurrentUrl()), for example

Checks

daun commented 1 year ago

Sweet!