Repository navigation
A query string in a plugin's file:// path causes a duplicate load and a duplicate route #10775
Unanswered
Dogwind221
asked this question in
Q&A
Replies: 1 comment
|
Agreed — I'll drop the "blanket ban" framing. The concrete failure I hit was that a query string in a Reframing to what I think is actually actionable:
Keeping this separate from the HMR thread as you suggested. For source HMR I now use a clean, stable registration URL plus the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Repro
Register a local plugin with a cache-busting query string on the
file://path:Expected
The plugin loads once;
?v=2is treated as a harmless suffix (or rejected up front).Actual
The package name fails to resolve correctly. The same plugin ends up loaded twice, and the second registration throws
duplicate routefor the prefix route it registers — the whole plugin tree fails at boot.Evidence
I hit this on my
webprofile (an entry formedia-studiobroke exactly this way and took a restart cycle to diagnose). Switching to a cleanfile://URL with no query string fixed it immediately.Suggestion
Either:
file://path contains?, stop with an explicit error along the lines of "query strings are not supported in plugin paths; use a clean path".Right now the failure mode is a duplicate-route stack from somewhere else in the tree, which doesn't point at the real cause. A clear error at parse time would save the restart-and-guess loop.
Environment
file://paths in a profilecordis.patch.yml?v=compared side by sideAll reactions