Skip to content

Commit

Permalink
🐛 Fix broken absolute links
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Nov 3, 2022
1 parent bc818d9 commit 1203a95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions components/ISCNList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
</td>
<td v-if="record.contentFingerprints">
<a
v-for="[schema, link] in record.contentFingerprints.map(fingerprintLink)"
v-for="[schema, link, target] in record.contentFingerprints.map(fingerprintLink)"
:key="schema"
:href="link"
target="blank"
:target="target"
>
{{ schema }}
</a>
Expand Down Expand Up @@ -183,13 +183,13 @@ export default {
const [schema, value] = fingerprint.split('://')
switch (schema) {
case 'ipfs':
return [schema, `${IPFS_GATEWAY}/ipfs/${value}`]
return [schema, `${IPFS_GATEWAY}/ipfs/${value}`, 'blank']
case 'ar':
return [schema, `${ARWEAVE_GATEWAY}/${value}`]
return [schema, `${ARWEAVE_GATEWAY}/${value}`, 'blank']
default:
return [schema, `/fingerprint/${encodeURIComponent(fingerprint)}`]
return [schema, `./fingerprint/${encodeURIComponent(fingerprint)}`, '']
}
},
isValid (record) {
Expand Down
2 changes: 1 addition & 1 deletion components/TagList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h3>Featured Keywords</h3>
<ul>
<li v-for="keyword in keywords" :key="keyword">
<a :href="`/keyword/${keyword}`">{{ keyword }}</a>
<a :href="`./keyword/${keyword}`">{{ keyword }}</a>
</li>
</ul>
</div>
Expand Down

0 comments on commit 1203a95

Please sign in to comment.