Skip to content

Commit

Permalink
hotfix: switch from core-utils to lodash-es import (#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
KenzoBenzo authored May 15, 2024
1 parent 533a555 commit 587022c
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 51 deletions.
2 changes: 1 addition & 1 deletion packages/template-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"dependencies": {
"@fern-api/fdr-sdk": "^0.85.1-5824999e3",
"@fern-ui/core-utils": "workspace:*",
"@fern-ui/core-utils": "workspace:dist",
"lodash-es": "^4.17.21"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions packages/ui/app/src/components/FernLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ export function checkIsRelativeUrl(url: UrlObject): boolean {
return true;
}

if (url.protocol) {
return false;
}

if (url.href.startsWith("/")) {
return false;
}
Expand Down
Loading

0 comments on commit 587022c

Please sign in to comment.