question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

using a container for most routes, how to exclude it from route path?

See original GitHub issue

Hi,

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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ktsncommented, Jan 4, 2021
0reactions
mariusacommented, Jan 4, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found