Skip to content

Commit

Permalink
fix: change isAbsolute to includes double slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
makamekm committed May 16, 2024
1 parent f8cfe8b commit c8382a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transform/plugins/links/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ function processLink(state: StateCore, tokens: Token[], idx: number, opts: ProcO
}

let newPathname = '';
if (!isAbsolute(href)) {

if (!isAbsolute(href) && !href.includes('//')) {
newPathname = getPublicPath(opts, file);

href = url.format({
Expand Down

0 comments on commit c8382a1

Please sign in to comment.