Fix highlighting the settings page while inside it

This commit is contained in:
Kevin MacMartin 2021-07-29 18:29:50 -04:00
parent 2f2ba60186
commit 5393d352e7

View file

@ -1,5 +1,5 @@
@extends('templates.base', [ 'title' => 'Dashboard' ])
@set('current_page', preg_replace([ '/https?:\/\/[^\/]*\/dashboard\/[^\/]*\//', '/\/.*/' ], [ '', '' ], Request::url()))
@set('current_page', preg_match('/\/settings$/', Request::url()) ? 'settings' : preg_replace([ '/https?:\/\/[^\/]*\/dashboard\/[^\/]*\//', '/\/.*/' ], [ '', '' ], Request::url()))
@section('page-includes')
<script src="/js/lib-dashboard.js?version={{ Version::get() }}"></script>