Skip to content

Commit

Permalink
Update App.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored Nov 11, 2024
1 parent 2ca7331 commit f44ea1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion taxonium_website/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ function getConfigFromPath() {

// Remove leading slash and get full path
const path = window.location.pathname.substring(1);
const decodedPath = decodeURIComponent(path);

// Return the configuration for this path, if it exists
return treeConfig[path] || null;
return treeConfig[decodedPath] || null;
}

function App() {
Expand Down

0 comments on commit f44ea1e

Please sign in to comment.