Skip to content

About page routing #1828

Open
Open
@souloss

Description

@souloss

When we do theme customization, we often need to define routes for some pages. When I redefine the route for the 404 page, I found that it didn't work. I don't have the part I defined in the router instance. I feel very strange.
I enhanced the Vue instance with the enhancementApp.js file in the theme, where the code for the route enhancement section is:

   router.addRoutes([{
     Path: '*', redirect: '/404'
   }])

No matter how I define it, path: '*' seems to be overwritten by GlobalLayout.vue.
Is there a solution to this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions