Skip to content
Discussion options

You must be logged in to vote

This was the reason;
I was using a sub-domain for admin and this twill.admin_app_strict config is set to false by default. This is why all urls/routes were consider as "Twill Route". Setting this to true in .env solved my issue, now I am getting Laravel's default error pages in FE and Twill Error pages in Admin Area.

twill/src/TwillRoutes.php

Lines 412 to 414 in dc08371

$matchesDomain = config('twill.support_subdomain_admin_routing') ?
Str::startsWith($requestHost, config('twill.admin_app_subdomain', 'admin') . '.') && Str::endsWith($requestHost, '.' . $adminAppUrl)
: ! config('twill.admin_app_strict') || $requestHost === $adminAppUrl;

The solution;
To enable s…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Meeshalk
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Meeshalk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants