prevent external subdomain redirect
This commit is contained in:
parent
8830b8ee9c
commit
2ee780ec7a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue