Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

190
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda