Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
1.0 KiB
1.0 KiB
Regression: /categories must not render campaign edit
Symptom (fixed)
Nav/URL on Categories (/categories) sometimes showed Edit campaign chrome with a blank body.
Cause notes
- Route files are distinct:
routes/categories/+page.sveltevsroutes/campaigns/[id]/+page.svelte. - SvelteKit dictionary maps
/categories→ categories page and/campaigns/[id]→ campaign edit. - Campaign edit previously rendered
PageShelltitled "Edit campaign" even whenpage.params.idwas empty (blank body) — that shell must never linger across client navigations.
Guards added
- Root dashboard layout keys page content by
page.url.pathnameso prior route shells unmount on nav. - Campaign edit redirects to
/campaignswhenidis missing; wizard is keyed bycampaignId.
Quick check
- Open
/campaigns/<any-id>(or list), then click Categories in the nav. - Assert H1 is Categories and body shows the category tree (not "Edit campaign").
- Hard-load
/categories— same result.