Skip to content

Commit dede3f6

Browse files
committed
fix(docs): use withBase() for ComparisonTable internal doc links
Strip the hardcoded /github-code-search/ prefix from all docLink values and apply withBase() at render time so links remain correct in versioned snapshot builds (where VITEPRESS_BASE changes, e.g. /github-code-search/v2/). Addresses copilot review comment: #90 (comment)
1 parent 5fe1b79 commit dede3f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/.vitepress/theme/ComparisonTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const ROWS: Row[] = [
108108
<tbody>
109109
<tr v-for="row in ROWS" :key="row.feature" class="ct-row">
110110
<td class="ct-feature">
111-
<a v-if="row.docLink" :href="row.docLink" class="ct-feature-link">
111+
<a v-if="row.docLink" :href="withBase(row.docLink)" class="ct-feature-link">
112112
<span class="ct-feature-title">{{ row.feature }}</span>
113113
<span class="ct-feature-desc">{{ row.desc }}</span>
114114
</a>

0 commit comments

Comments
 (0)