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

68
Views
Vue Js. router/Index.js

Screenshot1

Hi everyone,

The screenshot shows a menu from a website built with vue js. What I want to do is to redirect to external resources such as google.com outside the site when this menu is clicked. Is it possible to do this in router/index.js?

let router = new Router({
base: process.env.BASE_URL,
mode: "history",
routes: [
    {
        path: "/xxx",
        name: "dashboard",
        meta: {},
        url: "www.xxxxafafa.org" // as this
    },

With the path field, it is understood which menu is the clicked menu. Since the code will enter here when this menu is clicked on the page, what I want to do is to redirect to any external source from within the block.

I will be waiting for your help. Thanks.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

There is Per-Route Guard

beforeEnter: (to, from, next) => {
    window.location.href = 'http://www.xxxxafafa.org'
}
about 4 years ago · Juan Pablo Isaza Report
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!