Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@davoodmehraban89
/
medusa
Fork
0
medusa
/
www
/
packages
/
docs-ui
/
src
/
utils
/
get-link-with-base-path.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
automation/medusa-upstream-review
main
project/medusa-foundation-audit
security/codeql-dependabot-gitleaks
ts
3 lines
117 Bytes
Copy permalink
Copy
Raw
1
export
function
getLinkWithBasePath
(
path
:
string
,
basePath
?:
string
):
string
{
2
return
`
${
basePath
||
""
}${
path
}
`
3
}