diff --git a/.changeset/shaggy-baths-jump.md b/.changeset/shaggy-baths-jump.md
new file mode 100644
index 0000000..0c8a23f
--- /dev/null
+++ b/.changeset/shaggy-baths-jump.md
@@ -0,0 +1,5 @@
+---
+"@usace-watermanagement/groundwork-water": patch
+---
+
+Updating routing in docs by removing leading /#/ can setting base_Url to be "/groundwork-water/" : "/"
diff --git a/docs/src/App.jsx b/docs/src/App.jsx
index e6718d6..efa74bc 100644
--- a/docs/src/App.jsx
+++ b/docs/src/App.jsx
@@ -25,7 +25,12 @@ function App() {
}
return (
-
doUpdateHash(url))}>
+
{
+ if (url.includes("/#")) url = url.replace("/#", "");
+ doUpdateHash(url);
+ })}
+ >
Start with the{" "}
CWMSForm
@@ -33,7 +33,7 @@ function FormsDocs() {
-
CWMSForm
@@ -42,7 +42,7 @@ function FormsDocs() {
-
CWMSInput
@@ -51,7 +51,7 @@ function FormsDocs() {
-
CWMSTextarea
@@ -60,7 +60,7 @@ function FormsDocs() {
-
CWMSCheckboxes
@@ -69,7 +69,7 @@ function FormsDocs() {
-
CWMSRadioGroup
@@ -78,7 +78,7 @@ function FormsDocs() {
-
CWMSDropdown
@@ -87,7 +87,7 @@ function FormsDocs() {
-
CWMSInputTable
@@ -96,7 +96,7 @@ function FormsDocs() {
-
CWMSSpreadsheet
diff --git a/docs/vite.config.js b/docs/vite.config.js
index ffe9356..ca07270 100644
--- a/docs/vite.config.js
+++ b/docs/vite.config.js
@@ -4,10 +4,7 @@ import pkg from "../package.json";
import tailwindcss from "tailwindcss";
export default defineConfig(({ mode }) => {
- const base =
- mode === "production"
- ? "https://USACE-WaterManagement.github.io/groundwork-water/"
- : "http://localhost:5173/";
+ const base = mode === "production" ? "/groundwork-water/" : "/";
return {
plugins: [react(), tailwindcss()],
base: base,
diff --git a/vite.config.ts b/vite.config.ts
index 40e3cdf..9489ee2 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -44,10 +44,7 @@ export default defineConfig(({ mode }) => {
};
} else {
console.log("Building Docs App: ", mode);
- const base =
- mode === "production"
- ? "https://USACE-WaterManagement.github.io/groundwork-water/"
- : "http://localhost:5173/";
+ const base = mode === "production" ? "/groundwork-water/" : "/";
return {
plugins: [react(), tailwindcss()],
base: base,