forked from hotwired/turbo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow morphing between different URLs
Allows morphing between similar types of pages that have different URLs. A proof of concept fix for the problem descrubed here: hotwired#1177 For example, if you set this meta tag: <meta name="turbo-morph-url-prefix" content="/images/"> Then morphing will be triggered for: - `/images/1` - `/images/12` - `/images/123` This solution has some downsides (e.g, won't work with nested resources). A regex-based alternative could address that. Please let me know if you'd be willing to consider this change and I'll go ahead and add tests.
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters