Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Try fix path bug 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Jul 11, 2022
1 parent 6fd7622 commit b44e9a5
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,9 @@ module NfdiSidebarElementHeader =
let attr = hb.GetAttributes()
attr.AddProperty("slot", "inner")

#if WATCH
if href.IsSome then
attr.AddProperty("href", href.Value)
#else
if href.IsSome then
let nextHref = if productionBasePath.IsSome then "/" + productionBasePath.Value.Trim([|'/'|]) + "/" + href.Value.Trim([|'/'|]) else href.Value
attr.AddProperty("href", nextHref)
#endif


if (renderer.EnableHtmlForBlock) then
Expand Down

0 comments on commit b44e9a5

Please sign in to comment.