diff options
Diffstat (limited to 'ui/src/index.tsx')
-rw-r--r-- | ui/src/index.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/src/index.tsx b/ui/src/index.tsx index 0164f50e..2f25dffe 100644 --- a/ui/src/index.tsx +++ b/ui/src/index.tsx @@ -38,17 +38,18 @@ class Index extends Component<any, any> { <Navbar /> <div class="mt-3 p-0"> <Switch> - <Route path="/home/type/:type/sort/:sort/page/:page" component={Main} /> - <Route exact path="/" component={Main} /> + <Route path={`/home/type/:type/sort/:sort/page/:page`} component={Main} /> + <Route exact path={`/`} component={Main} /> <Route path={`/login`} component={Login} /> <Route path={`/create_post`} component={CreatePost} /> <Route path={`/create_community`} component={CreateCommunity} /> <Route path={`/communities`} component={Communities} /> <Route path={`/post/:id/comment/:comment_id`} component={Post} /> <Route path={`/post/:id`} component={Post} /> - <Route path="/f/:name/sort/:sort/page/:page" component={Community} /> + <Route path={`/f/:name/sort/:sort/page/:page`} component={Community} /> <Route path={`/community/:id`} component={Community} /> <Route path={`/f/:name`} component={Community} /> + <Route path={`/u/:username/view/:view/sort/:sort/page/:page`} component={User} /> <Route path={`/user/:id`} component={User} /> <Route path={`/u/:username`} component={User} /> <Route path={`/inbox`} component={Inbox} /> |