mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 15:17:09 +00:00
Track generator ID in custom dimension
Preparing to add back search parameters to share links
This commit is contained in:
@@ -54,7 +54,7 @@ export function cleanUrl(url: string) {
|
||||
}
|
||||
|
||||
export function getGenerator(url: string) {
|
||||
const trimmedUrl = url.replace(/^\//, '').replace(/\/$/, '')
|
||||
const trimmedUrl = url.replace(/^\//, '').replace(/\/$/, '').replace(/\?.*/, '')
|
||||
return config.generators.find(g => g.url === trimmedUrl)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user