Skip to content

Fix Route [login] not defined on paid plugin show page#339

Merged
simonhamp merged 1 commit intomainfrom
fix-route-login-not-defined
Apr 9, 2026
Merged

Fix Route [login] not defined on paid plugin show page#339
simonhamp merged 1 commit intomainfrom
fix-route-login-not-defined

Conversation

@simonhamp
Copy link
Copy Markdown
Member

Summary

  • Fixed route('login')route('customer.login') in plugin-show.blade.php for unauthenticated users viewing paid plugin pages
  • Added PluginShowPaidGuestTest to verify paid plugin pages render correctly for guests

Problem

Unauthenticated users visiting paid plugin pages (e.g. /plugins/nativephp/mobile-firebase) got a 500 error because route('login') was used but no route with that name exists. The correct route name is customer.login.

Closes #56

Test plan

  • New test PluginShowPaidGuestTest passes — verifies guest can view paid plugin page with login link
  • Existing PluginShowMobileVersionTest tests still pass

🤖 Generated with Claude Code

The plugin-show Blade view used route('login') which doesn't exist.
The correct named route is 'customer.login'. This caused a 500 error
for unauthenticated users viewing paid plugin pages.

Closes #56

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@simonhamp simonhamp marked this pull request as ready for review April 9, 2026 16:52
@simonhamp simonhamp merged commit 60342eb into main Apr 9, 2026
2 checks passed
@simonhamp simonhamp deleted the fix-route-login-not-defined branch April 9, 2026 16:52
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