Skip to content

[6.x] Hide default Statamic logo on frontend auth pages#14522

Merged
jasonvarga merged 1 commit into6.xfrom
hide-logo-frontend-auth
Apr 20, 2026
Merged

[6.x] Hide default Statamic logo on frontend auth pages#14522
jasonvarga merged 1 commit into6.xfrom
hide-logo-frontend-auth

Conversation

@jasonvarga
Copy link
Copy Markdown
Member

Summary

  • The Outside layout is used for auth-style pages rendered both inside the Control Panel (/cp/auth/*) and on the frontend (/!/auth/*, e.g. the default password reset screen).
  • On frontend routes we no longer render the default Statamic logo fallback — developers shouldn't see Statamic branding on their own site's auth pages when they haven't customized anything.
  • Custom logos (image or text) set via statamic.cp.custom_logo_url / custom_logo_text continue to render on both CP and frontend routes.
  • Exposes isCpRoute through the shared Inertia _statamic props so the Vue layout can distinguish the two contexts; hides the entire logo wrapper on frontend routes when nothing would render, to avoid leaving an empty padded block.

Test plan

  • Visit /cp/auth/login with no custom logo configured — default Statamic logo still appears.
  • Visit /!/auth/password/reset/{token} with no custom logo — no logo is rendered and there's no empty space where it used to be.
  • Configure statamic.cp.custom_logo_url — custom logo appears on both /cp/auth/* and /!/auth/*.
  • Configure statamic.cp.custom_logo_text — custom text appears on both /cp/auth/* and /!/auth/*.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jasonvarga jasonvarga merged commit 6e7fccb into 6.x Apr 20, 2026
18 checks passed
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.

1 participant