hash: '#fa-2',
})
expect(loc.redirectedFrom).toMatchObject({
- fullPath: '/inc-query-hash?n=2#fa',
+ fullPath: '/inc-query-hash?n=3#fa',
path: '/inc-query-hash',
})
})
// target location normalized, used if we want to redirect again
const normalizedLocation: RouteLocationNormalized = {
...matchedRoute.normalizedLocation,
- fullPath: this.history.utils.stringifyURL(
- matchedRoute.normalizedLocation
- ),
+ fullPath: this.history.utils.stringifyURL({
+ path: matchedRoute.normalizedLocation.path,
+ query: location.query,
+ hash: location.hash,
+ }),
query: this.history.utils.normalizeQuery(location.query || {}),
hash: location.hash,
redirectedFrom,