Skip to content

Commit

Permalink
components: update return function assetImage in template AKWDocsAsid…
Browse files Browse the repository at this point in the history
…eMeta #9
  • Loading branch information
OlegShchavelev committed May 13, 2024
1 parent aaa41da commit ef051ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .vitepress/theme/composables/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const assetImage = (url: string, path: string) => {
if (!url) return
if (isValidUrl(url) != false) return url

return new URL(`${path + url.slice(2)}`, import.meta.url).href
return new URL(`/${path.slice(1) + url.slice(2)}`, import.meta.url).href

}

0 comments on commit ef051ab

Please sign in to comment.