mirror of
https://github.com/logto-io/logto.git
synced 2025-03-31 22:51:25 -05:00
refactor(console): do not parameterize guide id (#5863)
This commit is contained in:
parent
1c414f1889
commit
bec2720c7b
1 changed files with 5 additions and 1 deletions
|
@ -18,7 +18,11 @@ export const getRoutePattern = (pathname: string, routes: RouteObject[]) => {
|
|||
}
|
||||
|
||||
// If the path is not a parameter, or it's an ID parameter, use the path as is.
|
||||
if (!segment.startsWith(':') || segment.endsWith('Id') || segment.endsWith('id')) {
|
||||
// Exception: For `:guideId`, we want to use the parameter value for better analytics.
|
||||
if (
|
||||
segment !== ':guideId' &&
|
||||
(!segment.startsWith(':') || segment.endsWith('Id') || segment.endsWith('id'))
|
||||
) {
|
||||
return segment;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue