neurobagel / old-query-tool

User interface for searching across Neurobagel graph
https://query.neurobagel.org/
MIT License
2 stars 0 forks source link

there is a URL / link that leads to a query tool that only searches OpenNeuro #302

Closed surchs closed 11 months ago

surchs commented 11 months ago

We want

This is not very difficult.

To put a component variable into the URL:

this.$router.push({ query: { node: "world" } });

where node is the query parameter and "world" is the value -> my.app/?node=world

To read a URL query parameter from the URL into a component variable:

computed: {
    node() {
      return this.$route.query.node;
    },
  },

So from the above URL we would get node="world" again

What might be trickier is the logic.

So

  1. URL is defined for e.g. q.nb.org/?node=openneuro
  2. App loads and has to async fetch the list of nodes

What should happen