Skip to content

Path keeps changing when updating query params #150

Closed Answered by Luksch187
Luksch187 asked this question in Q&A
Discussion options

You must be logged in to vote

I found it, crazy annoying:

I had this in my app.html:

<!doctype html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<link rel="icon" href="%sveltekit.assets%/favicon.png" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<base href="/" />
		%sveltekit.head%
	</head>
	<body data-sveltekit-preload-data="hover">
		<div style="display: contents">%sveltekit.body%</div>
	</body>
</html>

and the <base href="/" /> is what caused it.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@paoloricciuti
Comment options

@Luksch187
Comment options

Answer selected by Luksch187
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants