Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

211
Visualizações
Handling dot in vue-router params using vue 3

If route params contains dot(.) vue redirect the route to 404. In vue 2 we can allow/handle dot in router params using following rule in webpack:

devServer: {
      historyApiFallback: {
          disableDotRule: true
      }
 }

But vue 3 use vite instead of webpack. How to handle dot in parameters now?

route example are following:

{
  path: your-route/:params",
  component: somecomponent,
}
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I had the same problem and based on one of the question comments I went to the github issue about this problem and they recommend a plugin for vite that solves it.

Install it with

npm install --save-dev vite-plugin-rewrite-all

And add it to vite.config.js

import pluginRewriteAll from 'vite-plugin-rewrite-all';

export default {
  plugins: [pluginRewriteAll()]
}

Check out the github issue https://github.com/vitejs/vite/issues/4344

And the plugin's github https://github.com/ivesia/vite-plugin-rewrite-all.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda