Skip to content

Commit

Permalink
feat: ignore the handling of http links
Browse files Browse the repository at this point in the history
  • Loading branch information
zouhangwithsweet committed Jul 1, 2021
1 parent d971dd9 commit b2d4570
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export function joinPath(base: string, path: string): string {
}

export function withBase(path: string) {
if (/^(https?:)?\/\//.test(path)) return path
return joinPath(siteDataRef.value.base, path)
}

Expand Down

0 comments on commit b2d4570

Please sign in to comment.