aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-05-03 17:47:53 -0500
committerJP Dillingham <jp@dillingham.me>2022-05-03 17:47:53 -0500
commit7d4045dfe84e096adcb66250ef849afd6a5d4500 (patch)
treec14c51d94c4e24b9879e9945bd13f6011e4e09ad /src/web
parentdfebc0b5af7ea9828c4434c95de5fd70570fefad (diff)
downloadslskd-7d4045dfe84e096adcb66250ef849afd6a5d4500.tar.gz
remove urlbase?
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/App.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js
index 19ea8d37..9c64c1a9 100644
--- a/src/web/src/components/App.js
+++ b/src/web/src/components/App.js
@@ -157,37 +157,37 @@ class App extends Component {
{version.isCanary && <Menu.Item>
<Icon name='flask' color='yellow'/>Canary
</Menu.Item>}
- <Link to={`${urlBase}`}>
+ <Link to={`searches`}>
<Menu.Item>
<Icon name='search'/>Search
</Menu.Item>
</Link>
- <Link to={`${urlBase}/downloads`}>
+ <Link to={`downloads`}>
<Menu.Item>
<Icon name='download'/>Downloads
</Menu.Item>
</Link>
- <Link to={`${urlBase}/uploads`}>
+ <Link to={`uploads`}>
<Menu.Item>
<Icon name='upload'/>Uploads
</Menu.Item>
</Link>
- <Link to={`${urlBase}/rooms`}>
+ <Link to={`rooms`}>
<Menu.Item>
<Icon name='comments'/>Rooms
</Menu.Item>
</Link>
- <Link to={`${urlBase}/chat`}>
+ <Link to={`chat`}>
<Menu.Item>
<Icon name='comment'/>Chat
</Menu.Item>
</Link>
- <Link to={`${urlBase}/users`}>
+ <Link to={`users`}>
<Menu.Item>
<Icon name='users'/>Users
</Menu.Item>
</Link>
- <Link to={`${urlBase}/browse`}>
+ <Link to={`browse`}>
<Menu.Item>
<Icon name='folder open'/>Browse
</Menu.Item>
@@ -228,7 +228,7 @@ class App extends Component {
href="https://github.com/slskd/slskd/releases">See Release Notes</Button>
</Modal.Actions>
</Modal>}
- <Link to={`${urlBase}/system`}>
+ <Link to={`/system`}>
<Menu.Item>
<Icon name='cogs'/>System
</Menu.Item>
@@ -256,8 +256,8 @@ class App extends Component {
<Route path='*/rooms' render={(props) => this.withTokenCheck(<Rooms {...props}/>)}/>
<Route path='*/uploads' render={(props) => this.withTokenCheck(<Transfers {...props} direction='upload'/>)}/>
<Route path='*/downloads' render={(props) => this.withTokenCheck(<Transfers {...props} direction='download'/>)}/>
- <Route path='*/system/:tab?' render={(props) => this.withTokenCheck(<System state={applicationState} options={applicationOptions}/>)}/>
- <Redirect from='*' to={`${urlBase}/searches`}/>
+ <Route path='*/system' render={(props) => this.withTokenCheck(<System {...props} state={applicationState} options={applicationOptions}/>)}/>
+ <Redirect from='*' to={`/searches`}/>
</Switch>
</Sidebar.Pusher>
</Sidebar.Pushable>