The two-factor plugin (both our fork and the upstream copy) use plugins_url( '...blah.js', __FILE__ ) to deduce the URL for the asset. That resolves to full/site/path/vendor... instead of /vendor... when used in an Altis site where the plugin is installed to vendor/humanmade/two-factor.
Acceptance criteria:
[ ] Scripts and styles are registered with valid URIs
Steps to reproduce:
something.altis.cloud/some/path
I expected a functional 2FA form. Instead, we see 404s for all the two-factor plugin scripts and styles, because they get registered as,
instead of
The
two-factor
plugin (both our fork and the upstream copy) useplugins_url( '...blah.js', __FILE__ )
to deduce the URL for the asset. That resolves tofull/site/path/vendor...
instead of/vendor...
when used in an Altis site where the plugin is installed tovendor/humanmade/two-factor
.Acceptance criteria: