We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd3804c commit 255e5c4Copy full SHA for 255e5c4
packages/qwik-city/src/runtime/src/qwik-city-component.tsx
@@ -253,8 +253,7 @@ export const QwikCityProvider = component$<QwikCityProps>((props) => {
253
if (isBrowser) {
254
// Use `location.href` because the lastDest signal is only updated on page navigates.
255
if (type === 'link' && dest.href !== location.href) {
256
- const withoutHash = dest.href.split('#')[0];
257
- if (location.href.startsWith(withoutHash + '#')) {
+ if (location.href.startsWith(dest.href.split('#')[0])) {
258
location.hash = dest.hash;
259
} else {
260
history.pushState(null, '', dest);
0 commit comments