From 99242469669a349cc980be33444284e01dba0726 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Sun, 18 Jul 2021 14:35:44 -0400 Subject: [PATCH] Also highlight the active dashboard nav section when editing an item --- resources/views/templates/dashboard.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/templates/dashboard.blade.php b/resources/views/templates/dashboard.blade.php index 689df02..0446fee 100644 --- a/resources/views/templates/dashboard.blade.php +++ b/resources/views/templates/dashboard.blade.php @@ -1,5 +1,5 @@ @extends('templates.base', [ 'title' => 'Dashboard' ]) -@set('current_page', preg_replace([ '/^.*\//' ], [ '' ], Request::url())) +@set('current_page', preg_replace([ '/https?:\/\/[^\/]*\/dashboard\/[^\/]*\//', '/\/.*/' ], [ '', '' ], Request::url())) @section('page-includes')