Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/ready-pumas-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@usace-watermanagement/groundwork-water": patch
---

Add missing baseurl to docs
4 changes: 3 additions & 1 deletion docs/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const version = import.meta.env.PKG_VERSION;
import externalLinks from "./external-links";
import usaceLinks from "./usace-links";

const BASE_URL = import.meta.env.BASE_URL;

function App() {
const {
route: Route,
Expand All @@ -27,7 +29,7 @@ function App() {
return (
<div
onClick={getNavHelper((url) => {
if (url.includes("/#")) url = url.replace("/#", "");
if (url.includes(`${BASE_URL}#`)) url = url.replace(`${BASE_URL}#`, "");
doUpdateHash(url);
})}
>
Expand Down