visuddhinanda пре 4 дана
родитељ
комит
cbd123ef2b
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      api-v12/resources/views/library/book/read.blade.php

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

@@ -405,7 +405,7 @@
                     </span>
                     @elseif(!$item['disabled'])
                     {{-- ✅ 修改1:使用文集阅读路由,传 anthology + article 两个参数 --}}
-                    <a href="{{ route('library.anthology.read', ['anthology' => $anthologyId, 'article' => $item['id']]) }}" title="{{ $item['title'] }}">
+                    <a href="{{ route('library.anthology.read', ['anthology' => $anthologyId, 'article' => $item['id'],'channel' => request('channel')]) }}" title="{{ $item['title'] }}">
                         {{ $item['title'] }}
                     </a>
                     @else
@@ -437,7 +437,7 @@
                         <span>{{ $item['title'] }}</span>
                         @elseif(!$item['disabled'])
                         {{-- ✅ 修改1:同上 --}}
-                        <a href="{{ route('library.anthology.read', ['anthology' => $anthologyId, 'article' => $item['id']]) }}">
+                        <a href="{{ route('library.anthology.read', ['anthology' => $anthologyId, 'article' => $item['id'],'channel' => request('channel')]) }}">
                             {{ $item['title'] }}
                         </a>
                         @else
@@ -503,7 +503,7 @@
                         @if(!empty($book['pagination']['prev']))
                         <li class="page-item page-prev">
                             {{-- ✅ 修改2:翻页也用文集路由 --}}
-                            <a class="page-link" href="{{ route('library.anthology.read', ['anthology' => $anthologyId, 'article' => $book['pagination']['prev']['id']]) }}">
+                            <a class="page-link" href="{{ route('library.anthology.read', ['anthology' => $anthologyId, 'article' => $book['pagination']['prev']['id'],'channel' => request('channel')]) }}">
                                 <div class="row align-items-center">
                                     <div class="col-auto">
                                         <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-1">
@@ -520,7 +520,7 @@
                         @endif
                         @if(!empty($book['pagination']['next']))
                         <li class="page-item page-next">
-                            <a class="page-link" href="{{ route('library.anthology.read', ['anthology' => $anthologyId, 'article' => $book['pagination']['next']['id']]) }}">
+                            <a class="page-link" href="{{ route('library.anthology.read', ['anthology' => $anthologyId, 'article' => $book['pagination']['next']['id'],'channel' => request('channel')]) }}">
                                 <div class="row align-items-center">
                                     <div class="col">
                                         <div class="page-item-subtitle">下一篇</div>