mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 15:17:09 +00:00
Make sure url ends with a slash
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user