Hello everybody,
Displayed in the image is a menu from a website created using vue js. My goal is to be able to redirect users to external resources like google.com when they click on this particular menu. I'm wondering if it's achievable by modifying router/index.js?
let router = new Router({
base: process.env.BASE_URL,
mode: "history",
routes: [
{
path: "/xxx",
name: "dashboard",
meta: {},
url: "www.xxxxafafa.org" // similar to this
},
The path attribute helps identify which menu has been clicked. The intention is for the code to execute upon clicking this specific menu, redirecting to an external location within the block.
I am eagerly anticipating your assistance. Thank you.