mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
Fixed remove trailing slash logic.
This commit is contained in:
parent
909a96d458
commit
5165987076
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ export default async (req: NextApiRequestCollect, res: NextApiResponse) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.REMOVE_TRAILING_SLASH) {
|
if (process.env.REMOVE_TRAILING_SLASH) {
|
||||||
urlPath = urlPath.replace(/.+\/$/, '');
|
urlPath = urlPath.replace(/(.+)\/$/, '$1');
|
||||||
}
|
}
|
||||||
|
|
||||||
await saveEvent({
|
await saveEvent({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue