Support router in hash mode (spa)
See original GitHub issueEnvironment
- Operating System:
Darwin
- Node Version:
v14.19.1
- Nuxt Version:
3.0.0-rc.1
- Package Manager:
yarn@1.22.18
- Builder:
vite
- User Config:
ssr
,app
,typescript
- Runtime Modules:
-
- Build Modules:
-
Reproduction
Describe the bug
How to config nuxt 3 router to use hash-mode?
I know the docs is not finished yet, so I searched the source code, but it seems there is no way to use the createWebHashHistory
Additional context
No response
Logs
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Why using hash based urls in your React SPA will save you ...
Implement Hash Based Url in React In order to implement the hash based url in our SPA with React I choose to use...
Read more >Fixing SPA Routing in History mode | by Sami C. - Medium
The default mode for vue-router is hash mode - it uses the URL hash to simulate a full URL so that the page...
Read more >Maintaining Route Information During SPA (Single-Page ...
The benefit of the Hash mode routing is that is incurs significantly less technical complexity: You don't have to worry about History support...
Read more >History API Routing for SPAs using webpack-dev-server
Most SPA-Routers support several modes of routing, e.g. hash-based routing of the form example.org/#/my/route (e.g. React Router's ...
Read more >Different History modes - Vue Router
The history option when creating the router instance allows us to choose among different history modes. Hash Mode #. The hash history mode...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I want to use Nuxt 3 to build an SPA and pack it into a desktop app using Electron. According to the vue-router docs, hash mode is
Ahh we need this badly - we’re almost through with migrating to nuxt3 and are struggling with this 😭
@danielroe : can you please help ?