Jens Törnell
Jens Törnell

Reputation: 24748

Vue router, remove hash on some pages

I use vue and vue router.

By default it will add #/ to the urls. I want to have some pages served as PHP and other pages rendered by vue router.

Examples

I want all these to work:

Is it possible?

Upvotes: 0

Views: 374

Answers (1)

user6748331
user6748331

Reputation:

In the end, yes - it is possible. But mixing different modes is generally bad idea - it will leads to mess in architecture. Choose history or hash mode and make your application consistent, using just one of them.

Upvotes: 1

Related Questions