using a container for most routes, how to exclude it from route path?
See original GitHub issueHi,
Thanks for this useful package! I’m using a container for most (but not all) routes, to avoid repeating header/footer etc in every page. When they were set manually, it looked like this:
{
path: '/',
redirect: '/dashboard',
component: container,
children: [
{
path: 'dashboard',
name: 'dashboard',
component: dashboard,
},
Browser URL was /#/dashboard
Using vue-route-generator, I created a folder “container/”, which has dashboard.vue
The result works, but browser URL is /#/container/dashboard (and all the other pages include “container/”)
How to exclude “container/” from route path?
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
React Exclude routes - Stack Overflow
export default new ClientModule({ route: [ <Route exact path="/posts" component={loadable(() => import('./containers/Post').then(c => c.default))} ...
Read more >Exclude routes - Contrast Documentation
To exclude a single route, hover over the end of the row and select the Exclude icon ( ExcludeIcon. · To exclude multiple...
Read more >Routes - Networking | OpenShift Container Platform 3.11
The path of a request starts with the DNS resolution of a host name to one or more routers. The suggested method is...
Read more >Exclude specific routes from HTTPS redirect in .NET
I've recently been working on a web project built using ASP.NET Core. One of the features we implemented was to automatically redirect all ......
Read more >Routing — Phoenix v1.6.15 - HexDocs
Routes declared with resources expand to 8 clauses of the match function. Resources may restrict the number of match function clauses by using...
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
You are looking for https://github.com/ktsn/vue-router-layout
Thank you, yes, that works great together with vue-auto-routing! Would be awesome to have these built into native VueRouter, these packages are so useful.