Giter Site home page Giter Site logo

Comments (5)

lukepolo avatar lukepolo commented on May 20, 2024

@rebz after fixing the routes, did this fix the issue?

from varie.

rebz avatar rebz commented on May 20, 2024

It seems to have fixed a majority of the issues, yes. There is only one item left, but it may be by design.

When $router.route("*", "404"); lives outside any .prefix() or .template() it works just as expected.

When I put it inside a .template() for example, it appears to catch only routes that are not specified; excellent. However, when it does catch a route, it completely ignores any parent layouts defined in a .prefix() or .template(). See example route below:

image

I expect the 404 error to show INSIDE of the layout/core.vue file. Below is what I get...

image

Below is what successful routes normally look like.

image

from varie.

rebz avatar rebz commented on May 20, 2024

Additional information...

If I move the 404 to the top of its parent .template() it will inherit the core layout.

image

image

from varie.

rebz avatar rebz commented on May 20, 2024

I should note that adding /* to the 404 route will cause it to catch everything when inside .template().

from varie.

lukepolo avatar lukepolo commented on May 20, 2024

This was a toughie! Fixed 0.0.31

from varie.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.