Skip to content

fix: honor NUXT_HOME_URL on SPA navigation to / - #322

Open
hanoii wants to merge 1 commit into
miantiao-me:masterfrom
weingerehijos:home-url-client-side
Open

fix: honor NUXT_HOME_URL on SPA navigation to /#322
hanoii wants to merge 1 commit into
miantiao-me:masterfrom
weingerehijos:home-url-client-side

Conversation

@hanoii

@hanoii hanoii commented Jul 23, 2026

Copy link
Copy Markdown

Server middleware only redirects / on full page loads, so in-app navigation (e.g. dashboard logo) landed on the prerendered homepage instead of the configured home URL.

Add public /_config endpoint exposing a homeRedirect flag (never the target URL) and a global route middleware that forces a full-page load of / when set. Endpoint is unauthenticated by design and uses _ prefix so slug resolution skips it.

Fixes #320

Server middleware only redirects / on full page loads, so in-app
navigation (e.g. dashboard logo) landed on the prerendered homepage
instead of the configured home URL.

Add public /_config endpoint exposing a homeRedirect flag (never the
target URL) and a global route middleware that forces a full-page
load of / when set. Endpoint is unauthenticated by design and uses
_ prefix so slug resolution skips it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NUXT_HOME_URL doesn't work if the dashboard is open and you click on the sink logo.

1 participant