Questions tagged [router]

A router is a device that forwards data packets across multiple networks. DO NOT USE THIS TAG FOR QUESTIONS REGARDING URL ROUTING OR SINGLE PAGE APPLICATION ROUTERS

Filter by
Sorted by
Tagged with
1 vote
0 answers
53 views

Vue Test Utils with Vitest: AssertionError for $routerMock.push in unit test

I'm facing an issue with my unit test for a Vue.js component using Vue Test Utils and Vitest. I have a component named TheFooter.vue, and I'm trying to test whether clicking on a link triggers ...
Sahar Elbehery's user avatar
0 votes
0 answers
8 views

How to pass data between pages in NextJs 14

Please guys I'm new to this don't be harsh. I'm trying to pass data in nextJs and I have followed the answer given here After following the answer, I get this error Uncaught TypeError: path....
Kihiu's user avatar
  • 9
-1 votes
0 answers
21 views

Fixing a potential error in Pug File Hyperlink [closed]

I'm currently taking online classes in JS and Node.js and working on a project, but I've hit a snag. First, here's the link to my project: https://codesandbox.io/p/devbox/express-controller-blueprint-...
woo0703's user avatar
-1 votes
0 answers
14 views

How to configure communication betwean two routers [closed]

I am in dire need of help configurint routers to allow comunication. I have this network diagram: I need help to configure it so PC1 can ping PC2 and PC2 can ping PC1. This is the configuration I ...
mitas1c's user avatar
  • 303
-1 votes
0 answers
20 views

Database for event/session router interface state

With syslog events from this equipment, I can see all logs about interfaces like down and up state. I want to store this events and after this I want to search how long an interface was inactive. For ...
Paulo Henrique Peres's user avatar
1 vote
1 answer
73 views

Rust Axum router Sub directories

I'm just starting to learn Rust Axum and I'm wondering how I should structure my project. Right now, my project is a simple in memory to-do app stolen from a YouTube tutorial, where he defines a ...
José Gulmanelli's user avatar
-2 votes
0 answers
14 views

GNS3 ciscoasa couldn't ping from router to router [closed]

i want to ping from R2 to R1 to make sure it's connected, but it seems like something is missing in my configuration but i couldn't find out why. `this is my topology: this is my R2 ip interface and ...
Vincent Alexander's user avatar
1 vote
2 answers
61 views

How to open a link via "router.push" in a new tab using Nextjs router from next/navigation

I am developing a Nextjs app and would want to direct user to another link using router.push but I do not know how to open the link in new tab. My code is like this right now: import { useRouter } ...
Hoomi's user avatar
  • 73
1 vote
0 answers
57 views

How to handle async router in Vue 3

With Vue 3 router actions have gone async. Previously when you called push or replace, the change was instant, but that's not the case anymore. console.log(route.name) // Home router.push({ name: &...
Tartarus's user avatar
-3 votes
2 answers
58 views

How to get value of url inside a function in golang [closed]

I have this router function with mux: func InitRouter() { r := http.NewServeMux() r.HandleFunc("/{id}", getWords) log.Fatal(http.ListenAndServe(":8000", r)) } I want ...
Haroune's user avatar
  • 13
0 votes
0 answers
15 views

Vue router: return to top of page while having a transition

When I go to another <router-link> I always return to top, because that is how I set up my router: import { createRouter, createWebHistory } from 'vue-router'; import { routes } from '@/router/...
Michael's user avatar
  • 93
0 votes
0 answers
11 views

How to re-route my Streamlit app that's been deployed to my Kubernetes cluster?

Issue re-routing Kubernetes deployed app Hi, we've deployed a Streamlit app on our Kubernetes cluster with no problem: the app loads using the correct URL. Now we want to expose this app outside of ...
mateo's user avatar
  • 1
0 votes
0 answers
44 views

last nested route throws error on mount of the compontent that holds the nested router

I have strange behavior with nested routes. I have a component on the homeview in which a nested route is displayed if necessary. This component is triggered via v-if! inside HomeFloater <...
bluelemonade's user avatar
  • 1,137
0 votes
0 answers
40 views

React router outlets migration to Nextjs 14 app router

I'm trying to migrate the starting part of CRA app, but I'm not sure how to do it with app router in Next.JS 14, because I'm using outlets. Routers in CRA app: <Route path='/' element={<...
Игор Ташевски's user avatar
1 vote
0 answers
13 views

Why UI didn't update sometimes after router.refresh() but it did update to the backend?

I'm implementing a pinning message method just like messenger. Here's how it looks like: It should update the pinned message on the top immediately after I changed the pinned message. However, I have ...
susanliu's user avatar
-2 votes
0 answers
42 views

Why is my EdgeRouter-X IKEv2 VPN tunnel not working for HTTP/HTTPS on port 5000/5001?

I've configured my EdgeRouter-X for an IKEv2 VPN Tunnel using self signed certificates. I'm using this VPN to access my home network from my Android phone and my iPad. I can connect from both devices ...
bistromatic's user avatar
0 votes
0 answers
50 views

Angular - defining custom TitleStrategy to implement ngx-translation for router title property

I am developing a multilingual application in Angular V16. I am using ngx-translate library. I would like to implement the multilingual titles for individual routes defined in a Router. To do so, I ...
Tomáš K's user avatar
0 votes
0 answers
15 views

Next Js Building Production Version Error : document is not defined

I am building my Nextjs project and getting this document is not defined error. Repo Link : https://github.com/Hero-debug-cloud/No_Code
Vinay chandola's user avatar
0 votes
1 answer
53 views

Why isn't req.query functioning as expected in NEXT.js?

I have the following code in the latest NextJS App Router, inside the file app\api\products\route.tsx import { initMongoose } from "@/lib/mongoose"; import Product from "@/models/...
Yash Yadav's user avatar
1 vote
0 answers
33 views

Add suffix to angular route parameter

Previously i have a route with parameter like this: { path: 'store/:storeId/.', component: StoreComponent } i'm able to get the parameter value like this, if i navigate to this url https://localhost/...
jojo's user avatar
  • 136
0 votes
0 answers
42 views

I want to pass an ID as a params with Vue Router, but I'm having trouble

I have an article view and sideBarRight component. In SideBarRight Component - <v-chip-group> <v-chip v-for="tag in tags" :key="tag" :item-id="tag.id" @...
Saruhan's user avatar
  • 91
0 votes
0 answers
41 views

How to pass props via router link in Vue 3 Quasar?

I've reformatted the previous question with this one. I'm having a parent component with a sjingle child component. This child component has a router link to another child component. The issue is that ...
Ron's user avatar
  • 1
0 votes
0 answers
38 views

How to pass props via Vue 3 Router link?

I'm trying to pass props to a link router and a child component but I'm getting a warning "Missing required prop: "aircraft" //routes.js const routes = [ { path: 'aircraftsForm/:...
Ron's user avatar
  • 1
0 votes
0 answers
18 views

How to open a page with a router link with vue 3 and Quasar?

I'm trying to open a propriete page with a specific id by clicking on a button and displaying the new component's folder, but the contntent is empty and I'm receiving a warning which says " No ...
Ron's user avatar
  • 1
1 vote
0 answers
16 views

How to prevent browser back button navigation in nextjs 13 with app based routing?

I got a code for preventing browser backbutton click but when I tried to implement it , I got end up with thte followin error Unhandled Runtime Error Error: NextRouter was not mounted. https://nextjs....
Ajith's user avatar
  • 2,536
-1 votes
0 answers
34 views

why is Vue giving a type error of Cannot read properties of undefined when passing props using vue router

I Tried to get a prop to my component when using vue router but it keeps giving the error "Cannot read properties of undefined (reading 'subjectName') " console image my router js file const ...
damilola david's user avatar
0 votes
0 answers
33 views

Reuse router in Angular but also affect other component?

In Angular, I have 3 url which have same route but different query params? (Component A) - app/main/report?Type=1 - app/main/report?Type=2 - app/main/report?Type=3 In Constructor Component A, I put ...
Truong Tuan's user avatar
-2 votes
0 answers
44 views

I want to set up a web server on a Raspberry Pi and access it from an external network,

I dream of accessing my self-made website from my smartphone when I'm out, but I'm having trouble making it work. I suspect there might be issues with port forwarding, especially, and I would ...
Eclair K's user avatar
0 votes
0 answers
21 views

How to listen for all events on a router in python?

I am trying to connect to me network router through the sockets library in python, and monitor anything going in and out. One issue is that i can't find an open port on the router to connect to, and ...
PythonPro's user avatar
0 votes
0 answers
36 views

Promise on Express router don't work twice

I’m a beginner on Node.js and Express (or rather passage). It’s simple, I tried to do an email check by nesting two routers. And it works, but when I try a second time without restarting the server, ...
Azz972's user avatar
  • 1
-1 votes
0 answers
51 views

Accessing Devices from main network in guest network on ASUS router [closed]

On my ASUS RT-AX56U I have some devices that connected to a main network and some devices (mainly IOT) connected to my guest wifi. At the quest wifi setting i turned off the intranet access option so ...
kalmanv's user avatar
0 votes
0 answers
40 views

Error Deploying Next app to vercel (ReferenceError: location is not defined)

I have been trying to deploy a project developed using Next.js on vercel from my gitHub, but i have been encountering error saying ReferenceError: location is not defined I have checked for solutions ...
Rengkat's user avatar
  • 33
0 votes
0 answers
23 views

Isn't the network layer hop-to-hop (as opposed to end-to-end)?

Using logical connections makes it easier for us to think about the duty of each layer. As the figure shows, the duty of the application, transport, and network layers is end-to-end. However, the duty ...
philen's user avatar
  • 23
0 votes
0 answers
14 views

Main page indexing as 404

I have made a website with react and react-router v6 and I've connected prerender.io, so I'm struggling with the indexation, for some reason my home page indexing as my custom 404 error. However, it's ...
Ruslan Makhmatov's user avatar
0 votes
0 answers
34 views

Router.push infinite loop

Need help with inserting parameters into the url line. I have now implemented this window.history.pushState. But the problem is that when you press back in the browser, the url changes to the previous ...
Роман Осипенко's user avatar
0 votes
0 answers
22 views

Nodejs/express multiple get request not working [duplicate]

I am trying to call and especific with the route "/allPatientsAdm/" endpoint but its not working, call the first defined endpoint get with the route "/:id". router.get('/:id', ...
Ismael Felix Favela's user avatar
0 votes
1 answer
31 views

How to pass data without using props to a dynamic page in NextJS? Note: trying to reuse data and avoid network calls and tried React Context

I have a NextJS project where I am working on creating a report for projects. From the project details page there's a link to the dynamic report - which utilizes the details of the project displayed ...
Sid's user avatar
  • 11
0 votes
0 answers
15 views

How to calculate/find the network ID of my home router and second hop router?

Going by the book definition a router is connecting 2 or more networks depending on the number of interfaces inside of it. Let's discuss the simple case, my home router which is connecting LAN with ...
VMD's user avatar
  • 1
0 votes
1 answer
28 views

Fetch data from a nested api link

I have an API that provide other API link in an Array, I am able to fetch data from the first level of the Array but I also want to fetch data from the API that is inside the other Array. E.g The ...
Neron Godfather's user avatar
0 votes
0 answers
31 views

Saving react router component to local storage

I can't save the local storage on the react router, always when I refresh it cleans the page after trying everything I came to a conclusion that it is almost impossible to add local storage to react ...
Luciano Sardanha's user avatar
0 votes
0 answers
24 views

Creating dynamic routes based on Vue.js components in Nuxt.js Navigation

I'm developing a Vue.js project using Nuxt.js, and I'm facing an issue with dynamically generating routes based on components. I have a navigation drawer with menu items, each linked to a specific Vue ...
faeze.fd's user avatar
0 votes
1 answer
24 views

React Navigation: When is `getRehydratedState` triggered

I'm implementing a custom router by following the official documentation. The custom router needs to define the getRehydratedState method. I want to know what is the purpose of this method and when ...
hayata_suenaga's user avatar
0 votes
1 answer
139 views

Argument #1 ($callback) must be of type Closure, array given

U am running a driving school system on PHP/Apache and I am getting this error when I am trying to load the system. Errors appear to be from routes.php and SimpleRouter.php. Here is the error: Fatal ...
mano mpofu's user avatar
0 votes
2 answers
31 views

Not getting the required response from the router with OCNOS. In Python

As mention in the response, the commands are successfully executed on the router. But the response is incomplete or incorrect. May I am not reading the response correctly. How can I read the correct ...
Waleed Akbar's user avatar
0 votes
0 answers
23 views

Cant access XAMPP using other devices in LAN if DHCP was used

Here's my situation. I have a PC (acts as a server) and a mobile that is connected through a router (without internet). I can't connect to my PC using my mobile by typing in the IP address of the PC ...
Michi Mayo's user avatar
0 votes
2 answers
33 views

Vue dynamic routing

I am currently developing an app and something is wrong with my code as far as dynamic routing is concern. I have data on my firebase and bringing it to the app. For each department on my database it ...
jesse ulundo's user avatar
0 votes
1 answer
66 views

SolidJS Router page switching issues

Use the solidjs router to jump to a new page, the original page will be destroyed, resulting in the use of history.back(); When you return, the original page is reloaded. <Router> <Routes&...
teacher-too's user avatar
1 vote
1 answer
44 views

Vue3 redirect to another page after the file has been downloaded

The user receives a link from the server to download the file, then the function to download the file is started, after downloading the file the user should be taken to the main page. <script setup ...
Eoylka's user avatar
  • 11
2 votes
2 answers
307 views

Detect navigation event before it happens nextjs 13 app router

With nextjs 12 (pages router) the router returned from 'next/router' had navigation events you could listen for and handle appropriately. Here is the documentation. One specific event is ...
skellertor's user avatar
0 votes
0 answers
50 views

Nested routes with lazy-loaded modules

I have an application were I have a couple of modules that can work independently but in some cases, I want to display a component from one of the other modules. Lets say, module 1 is my "Files ...
Fernando Silva's user avatar

1
2 3 4 5
78