Skip to content

Commit 36b42c0

Browse files
committed
update: .eleventy.js — replace extra path from link
1 parent 26c8f54 commit 36b42c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.eleventy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default function (eleventyConfig) {
9898

9999
eleventyConfig.addFilter("convertToValidURL", (url) => {
100100
if (url.startsWith('http')) return url
101-
const validURL = new URL(url, (isDevelopment) ? "http://localhost" : link.website)
101+
const validURL = new URL(url.replace("\/assets\/",""), (isDevelopment) ? "http://localhost" : link.website)
102102
return validURL
103103
})
104104

0 commit comments

Comments
 (0)