Skip to content

Conversation

@oskarhurst
Copy link
Contributor

Updating routing in docs by removing leading /#/ can setting base_Url to be "/groundwork-water/" : "/"

Copy link
Contributor

@krowvin krowvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the onClick in line 28 of App.jsx to include this

<div
      onClick={getNavHelper((url) => {
        // Prevent duplicate /# so we can include the hash in the href, but still let the updateHash work for client-side routing
        if (url.includes("/#")) url = url.replace("/#", "");
        doUpdateHash(url);
      })}
    >

It should solve the extra /# we are getting on click

<Text className="mb-4">
Start with the{" "}
<Link
href={`${BASE_URL}/#/docs/forms/cwms-form`}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will want to keep #/ in so the HREF includes it for copy link / ctrl + click on all instances

@krowvin krowvin self-requested a review December 2, 2025 21:35
Copy link
Contributor

@krowvin krowvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go!

@krowvin krowvin merged commit ad16cf6 into USACE-WaterManagement:main Dec 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants