瀏覽代碼

fixed bad links href #2055

bach 1 年之前
父節點
當前提交
bfcad2d728
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      src/components/Content/ResultItem.vue
  2. 1 1
      src/components/Content/TocItem.vue

+ 2 - 2
src/components/Content/ResultItem.vue

@@ -2,7 +2,7 @@
   <article class="result item">
     <h1>
       <a
-        :href="'/edition/'+result.textId+'/'+result.uuid"
+        :href="'/texts/'+result.textId+'/'+result.uuid"
         @click.prevent="onclick"
         @keyup.enter="onclick"
         v-html="result.title"
@@ -10,7 +10,7 @@
     </h1>
     <h2>
       <a
-        :href="'/edition/'+result.textId+'/'+result.uuid"
+        :href="'/texts/'+result.textId+'/'+result.uuid"
         @click.prevent="onclick"
         @keyup.enter="onclick"
         v-html="editionTitle"

+ 1 - 1
src/components/Content/TocItem.vue

@@ -13,7 +13,7 @@
       :class="{active: isActive, loaded: isLoaded, notitle: noTitle}"
     >
       <a
-        :href="'/edition/'+editionid+'/'+item.uuid"
+        :href="'/texts/'+editionid+'/'+item.uuid"
         :uuid="item.uuid"
         @click.prevent="onclick"
         @keyup.enter="onclick"