Migrate content hrefs to SvelteKit resolve() (deferred from #101) #111
Labels
No labels
area: arcade
area: art-studio
area: calendar
area: chapel
area: content
area: design
area: field-guide
area: infra
area: library
area: os
area: portal
area: sync
area: typing
blocked
breaking
bug
content: approved
content: changes-requested
content: drafting
content: needs-doctrinal-review
content: needs-review
dependencies
documentation
duplicate
enhancement
epic
github_actions
good first issue
help wanted
invalid
javascript
needs-triage
priority: high
priority: low
priority: medium
question
type: enhancement
type: feature
type: fix
type: perf
type: security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Bosco/bosco#111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Deferred from #101 (eslint-plugin-svelte v3). The v3 rule
svelte/no-navigation-without-resolveis currently off because a naive migration breaks Bosco's routing contract. If we ever want the rule back on, this is what a correct migration must handle:The tension. Bosco sets
trailingSlash: 'always'(src/routes/+layout.ts) and every content href ends in/(the static build emitsdir/index.html;guard:offlineasserts trailing-slash hrefs). SvelteKit'sresolve('/route/[p]', {p})builds paths from the route id and emits them without a trailing slash. So a blind migration would strip the slash from every link and break both guard:offline and the live host's dir/ contract.What a real migration needs:
`${resolve(...)}/`(verify the rule accepts it) or revisittrailingSlash.resolve()with params.SearchPanel'shref={hit.url}is an opaque Pagefind index URL — not a route id — so it can't useresolve(); keep it with a scoped disable or a dedicated helper.baseis permanently''(apex-hosted; remark-bosco hardcodes it) so there is no functional bug today — this is code-hygiene/idiom, not a correctness fix. Low priority./x/before shipping.