Category "routes"

Can't we include vars in gorilla subrouter pathprefix?

I'm trying to add a subrouter to my router code : router := mux.NewRouter() baseRouter := router.PathPrefix("/api/v1").Subrouter() managementRouter := baseRoute

415 unsupported media type error while trying to upload file from react to web api

I am new to react and web api and I am getting this unsupported media type error while trying to upload my file into my web api function Here is my react js co

Toggling components depending of the current path in Nuxt

My layouts/default.vue looks like this: <template> <v-app style="background-color: transparent; color: unset"> <v-main> <ActHea

Next.js - router.push without scrolling to the top

I am using router from next by importing useRouter from next/router. I am trying to find a solution which will not scroll to the top of the page when I change t

Add Custom Header to HTTP request in Load Balancer

I have an containerized application/service deployed in openshift container platform with istio service mesh. In istio virtual service yaml, i wanted to validat

Svelte - routing , When I try entering any url I only get "No webpage was found" error

Using "svelte-routing" because I need to load a single page from lots of different urls , with the different urls serving as parameters. For example if a client

auto_route redirect with declarative routes

I have an iOS app with auto_route which uses declarative routes as in this example for the root router: https://autoroute.vercel.app/advanced/authentication. I

Transport modes/profiles in PTV developer Distance matrix API

I was planning to use PTV Developer API to calculate a distance matrix using something more sophisticated than a Manhattan distance. However looking at the Rou

How to route to page using Dynamic Routes in next.js

I am trying to route these urls to [id].js file in next.js, So everything is working for url 2 and 3 below, but its not working for url 1 so I have to create an

Redirect Strapi admin index to admin login

I am currently looking for way to create a permanent 301 redirect from the default Strapi admin index route (ie strapidomain.com) to the configured admin route

.Net Route Action Parameter coming back null despite being in url

UPDATE: It works fine is I add another parameter. I have no idea why. Not sure what I am doing wrong, this route looks the same as the other routes, I've looked

Page not reloading on navigate("/") (svelte-routing)

I am working on a website and there for using Svelte and the svelte-routing library . The svelte-routing library has a method called navigate(path). I use this

What are the correct "allowed IPs" on this site-to-site Wireguard link -- it should be obvious, but obviously not to me :_)

I've almost got it working, but not quite, and I've tried nearly everything except dark forces of magic. I have thought of another idea, but I didn't think cry

ASP.NET Core MapFallbackToFile is not handling non-existings urls. Only homepage

I am creating Blazor app. If I navigate to homepage - page loads fine, then I navigate into article e.g. localhost/new-article. Next step is page refresh via F5

Laravel same route for different middlewares

I have problem with routes and middlewares. I have 5 middleware roles. Administravimas, birstonas_biblioteka, druskininkai_biblioteka, birstonas_registratura,dr

How to create a route between markers?

I would like to create a map (preferably something like leaflet) with markers and a route (chosen by coordinates that I give) between these markers. To be more

NGINX environment-based routing

I have a single application running in multiple K8s clusters; Let's say there is a frontend service, and two backend ones. I use NGINX proxy the requests from t

Flutter Nested Navigation Back Button handling on Android

Background I have a Navigator widget on my InitialPage and I am pushing two routes ontop of it (NestedFirstRoute and NestedSecondRoute). When I press the physic

React ERROR:TypeError: Cannot read property 'pathname' of undefined

This is my Menu component. I later import it in routes.js. I am getting this error. TypeError: Cannot read property 'pathname' of undefined After searching

Angular Ngoninit getting called everytime while routing

I have one component Details where the routes for other child components is there. What is happening is that when I route to any other child component then the