Fixed admin theme not loading with custom admin url
This commit is contained in:
parent
ee75f42c02
commit
4773747e01
|
|
@ -20,7 +20,7 @@ class ThemeViewFinder extends FileViewFinder
|
|||
// Extract the $view and the $namespace parts
|
||||
list($namespace, $view) = $this->parseNamespaceSegments($name);
|
||||
|
||||
if (request()->route() !== null && ! Str::contains(request()->route()->uri, 'admin/')) {
|
||||
if (request()->route() !== null && ! Str::contains(request()->route()->uri, config('app.admin_url') . '/')) {
|
||||
$paths = $this->addThemeNamespacePaths($namespace);
|
||||
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class Themes
|
|||
*/
|
||||
public function __construct()
|
||||
{
|
||||
if (request()->route() !== null && Str::contains(request()->route()->uri, 'admin/')) {
|
||||
if (request()->route() !== null && Str::contains(request()->route()->uri, config('app.admin_url') . '/')) {
|
||||
$this->defaultThemeCode = Config::get('themes.admin-default', null);
|
||||
} else {
|
||||
$this->defaultThemeCode = Config::get('themes.default', null);
|
||||
|
|
|
|||
Loading…
Reference in New Issue