-
Notifications
You must be signed in to change notification settings - Fork 2
278 corps castle link not redirecting correctly #281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
d156e34
9945c66
294dfd0
aca47db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,11 +8,11 @@ function DocsPage({ breadcrumbs = [], children }) { | |
| const { hash } = useConnect("selectHash"); | ||
| return ( | ||
| <Container fluid> | ||
| <Breadcrumbs baseUrl={BASE_URL}> | ||
| <Breadcrumbs baseUrl={`${BASE_URL}#/`}> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch, I thought the base had the # in it for the hash router stuff |
||
| {breadcrumbs.map((breadcrumb) => ( | ||
| <BreadcrumbItem | ||
| key={breadcrumb.text} | ||
| href={BASE_URL + breadcrumb.href} | ||
| href={breadcrumb.href} | ||
| text={breadcrumb.text} | ||
| /> | ||
| ))} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,7 @@ export default defineConfig(({ mode }) => { | |
| const base = | ||
| mode === "production" | ||
| ? "https://usace.github.io/groundwork/" | ||
| : "http://localhost:5173/"; | ||
| : "http://localhost:5173/groundwork/"; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense. Avoids the awkward chance of missing path related issues on localhost |
||
| return { | ||
| plugins: [react()], | ||
| base: base, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this default to
#?I would think
/or nothing by default not an empty anchor tag. I realize the hash router might require it though.