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

How to remove # from url?? #46

Closed
shashibeit opened this issue Nov 9, 2018 · 5 comments
Closed

How to remove # from url?? #46

shashibeit opened this issue Nov 9, 2018 · 5 comments

Comments

@shashibeit
Copy link

When I load dashboard it appears as http://localhost:3000/#/dashboard
So How can we remove that # from URL

@xidedix
Copy link
Member

xidedix commented Nov 9, 2018

hi @shashibeit
The current version of CoreUI for React template uses <HashRouter>. You can switch to <BrowserRouter> if you prefer.

Changes have to be made at least in ./src/App.js and wherever # paths are in use (if any).

@sasaahlan
Copy link

Hi @xidedix
I just bought and experience the same.
I am trying coreui-pro-angular-admin-template-2.2.0
Any idea to remove # ?
Thanks

@xidedix
Copy link
Member

xidedix commented Dec 19, 2018

hi @sasaahlan
your issue has been moved to coreui/coreui-angular#37

@xidedix xidedix closed this as completed Dec 19, 2018
@dyankastutara
Copy link

dyankastutara commented Aug 24, 2020

change HashRouter to BrowserRouter on src/App.js

@ayoub-ouichen
Copy link

When I load dashboard it appears as http://localhost:3000/#/dashboard So How can we remove that # from URL

Go to app.modules.ts and let providers LocationStrategy & HashLocationStrategy in a comment like this:
providers: [
// {
// provide: LocationStrategy,
// useClass: HashLocationStrategy
// },
IconSetService,
],

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

5 participants