Fix the dashboard current_page variable so it behaves like it's supposed to

This commit is contained in:
Kevin MacMartin 2020-01-21 23:59:50 -05:00
parent a223f89ec4
commit 523165f5ba

View file

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