Fix the dashboard current_page variable

This commit is contained in:
Kevin MacMartin 2021-07-15 14:01:01 -04:00
parent e7643992b1
commit 79a3079e41

View file

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