prevent external subdomain redirect

This commit is contained in:
keyan 2023-05-07 10:02:23 -05:00
parent 8830b8ee9c
commit 2ee780ec7a
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ export function ensureProtocol (value) {
}
export function isExternal (url) {
return !url.startsWith(process.env.PUBLIC_URL) && !url.startsWith('/')
return !url.startsWith(process.env.PUBLIC_URL + '/') && !url.startsWith('/')
}
export function removeTracking (value) {