]> BookStack Code Mirror - bookstack/blobdiff - resources/views/components/expand-toggle.blade.php
Update settings.php
[bookstack] / resources / views / components / expand-toggle.blade.php
index 231b137410f59b178d74019ef5cd6526d2919a49..a24f9ac1e9ec79c7d1c55ed95250f177bf9f42ee 100644 (file)
@@ -3,13 +3,13 @@ $target - CSS selector of items to expand
 $key - Unique key for checking existing stored state.
 --}}
 <?php $isOpen = setting()->getForCurrentUser('section_expansion#'. $key); ?>
-<a expand-toggle="{{ $target }}"
-   expand-toggle-update-endpoint="{{ baseUrl('/settings/users/'. auth()->user()->id .'/update-expansion-preference/' . $key) }}"
+<button type="button" expand-toggle="{{ $target }}"
+   expand-toggle-update-endpoint="{{ url('/settings/users/'. $currentUser->id .'/update-expansion-preference/' . $key) }}"
    expand-toggle-is-open="{{ $isOpen ? 'yes' : 'no' }}"
    class="text-muted icon-list-item text-primary">
     <span>@icon('expand-text')</span>
     <span>{{ trans('common.toggle_details') }}</span>
-</a>
+</button>
 @if($isOpen)
     @push('head')
         <style>