Skip to content

Commit

Permalink
Merge pull request #454 from georgetown-cset/fix-index-html-page-fail…
Browse files Browse the repository at this point in the history
…ures

Add index.html pages to the router paths
  • Loading branch information
jmelot authored Jun 24, 2024
2 parents cc7fac8 + fe78dfd commit a4948a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/gui-v2/src/pages/company/[...].js
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,12 @@ const GenericPage = (props) => {
}

const FallbackPage = () => {
// Route URLs both with and without the `/index.html` on the end to the same
// components. The `/123-FOO/index.html` pages will redirect to `/123-FOO/`.
return (
<Router basepath="/">
<GenericPage path="/company/:slug" />
<GenericPage path="/company/:slug/index.html" />
</Router>
)
};
Expand Down

0 comments on commit a4948a7

Please sign in to comment.