[dreamwidth/dreamwidth] 081042: Fix journal subdomain root URI showing homepage in...
Branch: refs/heads/main Home: https://github.com/dreamwidth/dreamwidth Commit: 081042e7a5b88b3eae282f82dcb6bf1bfcd4fc3c https://github.com/dreamwidth/dreamwidth/commit/081042e7a5b88b3eae282f82dcb6bf1bfcd4fc3c Author: Mark Smith mark@dreamwidth.org Date: 2026-02-15 (Sun, 15 Feb 2026)
Changed paths: M app.psgi M t/plack-subdomain.t
Log Message:
Fix journal subdomain root URI showing homepage instead of journal
DW::Routing->call() in app.psgi was called without a username, so it always used the 'app' role. The homepage route (registered as app-only via /index) matched '/' on journal subdomains, returning a defined value that prevented the journal rendering block from running.
Pass the journal username (from dw.journal_user, set by SubdomainFunction middleware) to routing so it uses the 'user' role, where app-only routes like the homepage don't match.
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
To unsubscribe from these emails, change your notification settings at https://github.com/dreamwidth/dreamwidth/settings/notifications
