Skip to content

Commit

Permalink
change /question to /
Browse files Browse the repository at this point in the history
  • Loading branch information
Woozl committed Jun 21, 2023
1 parent a77889d commit 3bc6055
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
7 changes: 2 additions & 5 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react';
import {
BrowserRouter, Switch, Route, Redirect,
BrowserRouter, Switch, Route,
} from 'react-router-dom';
import { ThemeProvider, StylesProvider } from '@material-ui/core/styles';
import { Auth0Provider } from '@auth0/auth0-react';
Expand Down Expand Up @@ -87,14 +87,11 @@ export default function App() {
<Route path="/answer/:answer_id?">
<Answer />
</Route>
<Route path="/question">
<QueryBuilder />
</Route>
<Route path="/tutorial">
<Tutorial />
</Route>
<Route path="/">
<Redirect to="/question" />
<QueryBuilder />
</Route>
</Switch>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function Header() {
<Toolbar id="headerToolbar">
<MuiLink href="https://robokop.renci.org" style={{ cursor: 'pointer', margin: 0 }}><Logo height="48px" width="100%" style={{ paddingTop: '6px' }} /></MuiLink>
<div className="grow" />
<Link to="/question">Question Builder</Link>
<Link to="/">Question Builder</Link>
<Link to="/about">About</Link>
<Link to="/guide">Guide</Link>
<Link to="/tutorial">Tutorial</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Logout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function Logout() {
You&apos;ve successfully logged out
</h1>
<Link
to="/question"
to="/"
>
<Button
variant="contained"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Tutorial.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default function Tutorial() {
In addition to one-hop queries, ROBOKOP supports multi-hop and non-linear queries. Theoretically, ROBOKOP supports any query graph that a user creates. However, the more complex the query, the longer the running time and the higher the chance that ROBOKOP will not return an answer set, especially if very specific nodes/predicates are included in a complex query. In general, users will find it easier to begin with simple high-level queries and then iteratively refine them until the desired level of knowledge can be obtained within the constraints of the overall knowledge available in ROBOKOP.
</p>
<p>
For examples of other queries, please see the templated preloaded queries on the <Link to="/question">ROBOKOP question-builder page</Link>.
For examples of other queries, please see the templated preloaded queries on the <Link to="/">ROBOKOP question-builder page</Link>.
</p>
</Col>
</Row>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/queryBuilder/QueryBuilder.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default function QueryBuilder() {
const alertText = 'Your answer is ready!';
const { answerId } = response;
// User has navigated away, display a button to go to the answer
if (history.location.pathname !== '/question') {
if (history.location.pathname !== '/') {
displayAlert(
response.status,
<>
Expand Down

0 comments on commit 3bc6055

Please sign in to comment.