Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'#' in uri #26

Closed
fajarkarim opened this issue Nov 8, 2017 · 4 comments
Closed

'#' in uri #26

fajarkarim opened this issue Nov 8, 2017 · 4 comments

Comments

@fajarkarim
Copy link

Thanks for very nice template here. I just wondering why in url have '#' after base uri? is it can be remove ?

@fajarkarim
Copy link
Author

solved , it's because i use hash router rather than browser router

@kahovn
Copy link

kahovn commented Jun 27, 2018

How to solved?

@pjrola
Copy link

pjrola commented Dec 6, 2018

import { BrowserRouter, Route, Switch } from 'react-router-dom';

then use it in app.js

<BrowserRouter>
          <Switch>
            <Route exact path="/login" name="Login Page" component={Login} />
            <Route exact path="/register" name="Register Page" component={Register} />
            <Route exact path="/404" name="Page 404" component={Page404} />
            <Route exact path="/500" name="Page 500" component={Page500} />
            <Route path="/" name="Home" component={DefaultLayout} />
          </Switch>
</BrowserRouter>

@saeidabr60
Copy link

import { BrowserRouter, Route, Switch } from 'react-router-dom';

then use it in app.js

<BrowserRouter>
          <Switch>
            <Route exact path="/login" name="Login Page" component={Login} />
            <Route exact path="/register" name="Register Page" component={Register} />
            <Route exact path="/404" name="Page 404" component={Page404} />
            <Route exact path="/500" name="Page 500" component={Page500} />
            <Route path="/" name="Home" component={DefaultLayout} />
          </Switch>
</BrowserRouter>

I've changed routing to this but after build I get this "..../Test%20Goes%20Here/../UI/build/index.html"
on URL and app didn't run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants