Closed ieteo closed 2 years ago
The compiled file index.js in released version 4.3.0 doesn't contain the #308 fix, related to #307
index.js
Presumably something went wrong in the build process.
Looking at the compiled index.js in release v4.3.0 and searching for encodeURIComponent
encodeURIComponent
Reveals:
a=encodeURIComponent(t.from.replace(/\//g,"")); e=encodeURIComponent(t.path);
a=encodeURIComponent(t.from.replace(/\//g,""));
e=encodeURIComponent(t.path);
However, the compiled index.js should contain:
a=encodeURIComponent(t.from.replace(/\//g,"")); e=encodeURIComponent(t.path.replace(/\//g,""));
e=encodeURIComponent(t.path.replace(/\//g,""));
git clone https://github.com/distantnative/retour-for-kirby.git
cd /retour-for-kirby
npm install
npm run build
Looking at the history of the index.js we can see the release 4.3.0 contains older index.js
Kind regards eteo
Describe the bug
The compiled file
index.js
in released version 4.3.0 doesn't contain the #308 fix, related to #307Presumably something went wrong in the build process.
Looking at the compiled index.js in release v4.3.0 and searching for
encodeURIComponent
Reveals:
a=encodeURIComponent(t.from.replace(/\//g,""));
e=encodeURIComponent(t.path);
However, the compiled
index.js
should contain:a=encodeURIComponent(t.from.replace(/\//g,""));
e=encodeURIComponent(t.path.replace(/\//g,""));
Steps to reproduce
git clone https://github.com/distantnative/retour-for-kirby.git
cd /retour-for-kirby
npm install
npm run build
encodeURIComponent
in the freshly compiledindex.js
reveals the expected:a=encodeURIComponent(t.from.replace(/\//g,""));
e=encodeURIComponent(t.path.replace(/\//g,""));
Additional context
Looking at the history of the index.js we can see the release 4.3.0 contains older
index.js
Kind regards eteo