Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

186
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!