mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Allow slashes in tracker names.
This commit is contained in:
parent
dbc19e4ffd
commit
d2c9c45461
2 changed files with 2 additions and 4 deletions
|
|
@ -49,10 +49,8 @@ if (process.env.TRACKER_SCRIPT_NAME) {
|
|||
|
||||
if (names) {
|
||||
names.forEach(name => {
|
||||
const slash = name.substring(0, 1) === '/' ? '' : '/';
|
||||
|
||||
rewrites.push({
|
||||
source: `${slash}${name}`,
|
||||
source: `/${name.replace(/^\/+/, '')}`,
|
||||
destination: '/script.js',
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue