visuddhinanda 9 месяцев назад
Родитель
Сommit
033b74f6d0
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      api-v8/resources/views/library/book/read.blade.php

+ 4 - 2
api-v8/resources/views/library/book/read.blade.php

@@ -241,7 +241,7 @@
                 @foreach ($book['toc'] as $index => $item)
                 <li class="toc-level-{{ $item['level'] }} {{ $item['disabled'] ? 'toc-disabled' : '' }}">
                     @if (!$item['disabled'])
-                    <a href="#section-{{ $index }}">{{ $item['title'] }}</a>
+                    <a href="{{ route('library.book.read', $item['id']) }}">{{ $item['title'] }}</a>
                     @else
                     <span>{{ $item['title'] }}</span>
                     @endif
@@ -267,7 +267,9 @@
                     @foreach ($book['toc'] as $index => $item)
                     <li class="toc-level-{{ $item['level'] }} {{ $item['disabled'] ? 'toc-disabled' : '' }}">
                         @if (!$item['disabled'])
-                        <a href="/library/book/{{ $item['id'] }}/read">{{ $item['title'] }}</a>
+                        <a href="{{ route('library.book.read', $item['id']) }}">
+                            {{ $item['title'] }}
+                        </a>
                         @else
                         <span>{{ $item['title'] }}</span>
                         @endif