mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Add Redirects for /user/ subreddits
This commit is contained in:
parent
c0be214ed2
commit
b82e652361
1 changed files with 5 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import 'babel-polyfill'
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
import { BrowserRouter, Switch, Route } from 'react-router-dom'
|
||||
import { BrowserRouter, Switch, Route, Redirect } from 'react-router-dom'
|
||||
import { Provider } from 'unstated'
|
||||
|
||||
import Header from './pages/common/Header'
|
||||
|
|
@ -22,6 +22,10 @@ ReactDOM.render(
|
|||
<Route path='/r/:subreddit/comments/:threadID/:junk/:commentID' component={Thread} />
|
||||
<Route path='/r/:subreddit/comments/:threadID' component={Thread} />
|
||||
<Route path='/r/:subreddit' component={Subreddit} />
|
||||
<Redirect from='/user/:username/comments/:threadID/:junk/:commentID'
|
||||
to='/r/u_username/comments/:threadID/:junk/:commentID' />
|
||||
<Redirect from='/user/:username/comments/:threadID' to='/r/u_:username/comments/:threadID' />
|
||||
<Redirect from='/user/:username' to='/r/u_:username' />
|
||||
<Route component={NotFound} />
|
||||
</Switch>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue