Skip to content

Commit 255e5c4

Browse files
committed
Try to fix the test failure
1 parent cd3804c commit 255e5c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/qwik-city/src/runtime/src/qwik-city-component.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,7 @@ export const QwikCityProvider = component$<QwikCityProps>((props) => {
253253
if (isBrowser) {
254254
// Use `location.href` because the lastDest signal is only updated on page navigates.
255255
if (type === 'link' && dest.href !== location.href) {
256-
const withoutHash = dest.href.split('#')[0];
257-
if (location.href.startsWith(withoutHash + '#')) {
256+
if (location.href.startsWith(dest.href.split('#')[0])) {
258257
location.hash = dest.hash;
259258
} else {
260259
history.pushState(null, '', dest);

0 commit comments

Comments
 (0)