Make sure url ends with a slash

This commit is contained in:
Misode
2020-07-14 02:45:42 +02:00
parent 6151255d7c
commit 76264ed9e8

View File

@@ -287,6 +287,9 @@ Promise.all([
})
const reload = (target: string, track=true) => {
if (!target.endsWith('/')) {
target = `${target}/`
}
if (track) {
ga('set', 'page', target.replace(/^\/dev/, ''))
ga('send', 'pageview');