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

191
Visualizações
Redirect to specific vue component from external website

I'm trying to get a link from one website, to a specific component in another external website. The external website is utilizing vue and vue-router.

Assume that the first site is running on localhost:3000, I want to redirect to localhost/#/payments.

When I try direct redirect using this snippet(in localhost:3000):

<script>
    window.location.href = "http://localhost/#/payments";
</script>

Vue is opening the default component, which is not desired.

EDIT: This is the router of localhost:


export default function paymentRoutes() {
    return [
        {
            path: "/payment/",
            name: "PaymentSuccess",
            component: PaymentSuccess
        }
    ]
}

then in separated file:


Vue.use(VueRouter)

const routes = [ ...paymentRoutes()]
const router = new VueRouter({
    routes
})

export default router
about 4 years ago · Juan Pablo Isaza
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