mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
fix: fix remove trailing slash regex
This commit is contained in:
parent
8d483d9283
commit
33110a44ec
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ export async function POST(request: Request) {
|
|||
const twclid = currentUrl.searchParams.get('twclid');
|
||||
|
||||
if (process.env.REMOVE_TRAILING_SLASH) {
|
||||
urlPath = urlPath.replace(/(.+)\/$/, '$1');
|
||||
urlPath = urlPath.replace(/\/(?=(#.*)?$)/, '');
|
||||
}
|
||||
|
||||
if (referrer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue