diff --git a/packages/router/src/location.ts b/packages/router/src/location.ts index ef85d359b..1f29cfb63 100644 --- a/packages/router/src/location.ts +++ b/packages/router/src/location.ts @@ -244,9 +244,6 @@ export function resolveRelativePath(to: string, from: string): string { return ( fromSegments.slice(0, position).join('/') + '/' + - toSegments - // ensure we use at least the last element in the toSegments - .slice(toPosition - (toPosition === toSegments.length ? 1 : 0)) - .join('/') + toSegments.slice(toPosition).join('/') ) }