Skip to content

Commit

Permalink
Redirect invalid URLs to Dataset view (#86)
Browse files Browse the repository at this point in the history
* Move StationMap to /fixed-land-station-map/:topic

* Redirect all non-matching URLs to dataset view
  • Loading branch information
webb-ben authored Aug 23, 2024
1 parent 75b75b2 commit b042d46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Authorize = {

const routes = [
{
path: "/:topic",
path: "/fixed-land-station-map/:topic",
props: true,
name: "Topic Map",
component: Map,
Expand All @@ -29,6 +29,11 @@ const routes = [
name: "Authorize",
component: Authorize,
},
{
path: "/:path",
name: "Not Found",
redirect: "/"
},
];

const router = createRouter({
Expand Down

0 comments on commit b042d46

Please sign in to comment.