serratus-bio / serratus.io

Front-end code for Serratus project website
https://serratus.io
GNU Affero General Public License v3.0
11 stars 11 forks source link

Current JBrowse implementation prevents nested routes #127

Closed victorlin closed 3 years ago

victorlin commented 3 years ago

Been trying to make /explorer/rdrp work, but keep running into this error:

nested-route-jbrowse

Note that http://localhost:3000/explorer/dist/0.bundle.js should be http://localhost:3000/dist/0.bundle.js.

This might be because we have compiled JBrowse files in our source (reason: https://github.com/serratus-bio/serratus.io/pull/77#discussion_r472482617). We can observe it building the path to *.bundle.js relative to the current path:

return i.p+""+({}[t]||t)+".bundle.js"

I've tried using createBrowserHistory({ basename: '/' }) and removing exact from the Route, but no luck.

Reference:

ababaian commented 3 years ago

The RdRP will not work with JBrowse we don't have bam files. This is a nucleotide feature only.

victorlin commented 3 years ago

right, but

  1. the JBrowse files are loaded with every page
  2. we want to use /explorer/nt