Generated URLs are inconsistent to the basepath with adapter-static
#2697
Labels
feature / enhancement
New feature or request
p2-nice-to-have
SvelteKit cannot be used by a small number of people, quality of life improvements, etc.
Milestone
Describe the bug
Sapper was gracefully handling non-root basepaths by injecting a
<base>
tag into<head>
in place of%sapper.base%
. SvelteKit doesn't have that, but it does havekit.paths.base
. By changing it, the auto-generated URLs of SvelteKit are rebased, but if there were any previous static URLs, for example, a favicon inapp.html
, these URLs will be broken.Due to the fact that there are now both rebased and non-rebased URLs on a page, this can no longer be remedied by injecting a
<base>
tag with a hook, as @benmccann suggested in illright/attractions#311 (comment).Reproduction
https://github.com/illright/sveltekit-repro-basepath
Logs
No response
System Info
Severity
blocking all usage of SvelteKit
Additional Information
This blocks reliable deployment of SvelteKit-generated websites to GitHub Pages.
The text was updated successfully, but these errors were encountered: