Skip to content

I'm having a problem with createWebHistory #1832

Closed Answered by posva
ouiiuh asked this question in Help and Questions
Discussion options

You must be logged in to vote

You shouldn't worry about this: In practice, this feature allows your website to be hosted in any subdirectory of a website example.com/app/ needs /app as a base. In this scenario, your users always enter your application through example.com/app, any other subdirectory will serve a different page without your application.

If what you want to add is a prefix to all routes, do that in the routes themselves:

routes: [
  { path: '/app', children: [
    // actual routes
  ]}
]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ouiiuh
Comment options

Answer selected by ouiiuh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants