Questions tagged [url-routing]

URL routing is the process of mapping a URL to its content.

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

how to use optional url segment in Laravel?, but not at the end of the url [duplicate]

I have this routes: Route::prefix('/projects/{project}')->middleware('auth:sanctum')->group(function () { Route::prefix('/entel')->group(function () { Route::post('/search-by-code'...
1 vote
1 answer
26 views

React router V6 and redirect/rewrite declarative routes

I'm using createBrowserRouter to define routing in my app. I would also like to define some redirect/rewrite routes like: /original => /redirected/location and I'm able to define these quite ...
0 votes
0 answers
24 views

GCP Load balancer URL map: Distribute traffic by header and everything non-matching via location

I am trying to set-up URL maps for GCP load balancers. I have Service C for static files and the two web application services A and B. C should get everything not starting with a certain path, the ...
  • 1,229
0 votes
0 answers
17 views

Golang Connecting handler to button, so I can execute SQL statement?! What method should I use? [closed]

So I got this page at link /event/view/1 , and I, as a user, want to be able to join that event by click the button "join" and run my SQL stmt that is written in my eventJoin handler? what ...
0 votes
0 answers
24 views

Subdomain pointing to a Amazon managed Grafana

I need to redirect one of my subdomains to the URL of an Amazon Managed Grafana. I used to have an EC2 instance running Grafana so I had a static IP address that could be pointed from an A DNS record ...
  • 11
1 vote
1 answer
35 views

error: Literal sections cannot contain the '?' character

[HttpGet("Verification?g={g}")] public IActionResult Verify (string g) { return View("Verification.cshtml"); } I wrote the routing like above ...
0 votes
1 answer
47 views

preventing flashing of page when redirecting

I do have a verify page and status check page. I want to be able to check the user who logged in if his/her status is a boolean(string) in the cloud firestore. However, whenever the user is ...
-1 votes
0 answers
11 views

Client side routing not working on react application on production server [closed]

I created a react application with client side routing with vite. In development server it works fine. But when I deployed it on render as a static site the routing is not working. I set he rewrite ...
1 vote
0 answers
36 views

clojurescript base-url / prefix-url in routing using bidi and pushy

I'm implementing routing in clojurescript SPA (built using reagent and reframe). For routing i'm using bidi and pushy. Below is my code for routing. (def routes ["/" {"" ...
0 votes
1 answer
33 views

Unable to detect manual URL change in address bar for SPA in jQuery

I'm trying to build a search engine UI as a single page application using jQuery. I'm using fetch API for loading content and History API for navigation. I want non-hashed urls. I'm manually adding ...
0 votes
1 answer
47 views

ASP.NET Core routing multiple PUT verbs

I've been trying to create an API in .NET Core 6 with Swagger enabled, and two methods using Put verb. I'm getting an error saying both routes match the same params. [HttpPut("{id}")] public ...
  • 27
0 votes
0 answers
49 views

Next.js static website hosted on Cloudfront redirects to Home page on page refresh at other endpoints

The Next.js static website is hosted on S3 and Cloudfront and the issue faced is with the routing and refreshing from endpoints other than the home page. Directory structure:  pages/ index.tsx ...
  • 11
0 votes
1 answer
45 views

network simulation using ns2 software

When executing the following code: I faced this error: ns2 AOMDV simulation error Network is not my field. thus I need your help seriously. num_nodes is set 0 warning: Please use -channel as shown in ...
0 votes
0 answers
44 views

Symfony 6 on IIS server 10 : routing get the log, not the result of the endpoint

I'm trying to put my application with symfony6 and Api platform 3 on a IIS server. On the localhost there is no problem. On the /api i can get my documentation and i can call my endpoints. But when i ...
  • 1
0 votes
1 answer
78 views

Astro build version routes not working at all

I've been building a project with astro, everything worked perfectly fine in the dev mode and the preview mode but whenever I build the app all routes just point to the index.astro file and if I ...
0 votes
1 answer
59 views

Routing in Blazor does not work, parameter passed is always null

I have a simple razor component looking like this @page "/einsatz" @page "/einsatz/{ScaledTable}" @code { [Parameter] public string ScaledTable { get; set; } ...
  • 416
1 vote
1 answer
73 views

What are the problems of adding non-page file inside next.js pages dir?

I read in many places that we should only add page files inside next.js pages folder, but no one say exactly what are the problems of adding non-page files inside the pages folder? let say for example ...
  • 1,921
0 votes
0 answers
29 views

Why does React Router break unless I use Link components?

I am migrating a project from a very old version of react-router to the newer react-router-dom. I have the following code in my top level react component: import React from "react"; import {...
  • 333
0 votes
1 answer
42 views

Is there a way to move Symfony 6's controllers to several other directories?

I'm starting to develop a project that will be quite big (hear lots of files) and I want to have an organization that's different from Symfony's default one: instead of having one dir for all my ...
2 votes
1 answer
73 views

Why do I get a 404 error when I try to fetch from an existing route

I am trying to send data input in my registration page to my mongoDB database through an express.js route but I keep getting a 404: not found error even though I have created this specific route. ...
1 vote
0 answers
23 views

Istio: How to do canary deployment

Currently there are 3 possible values which we can receive in the header like A1, A2 and A3, and we have three different services running for each value like Service-A1, Service-A2 and Service-A3. ...
0 votes
0 answers
7 views

HTTP route based on content

I am looking for routing requests based on HTTP content. I would like to know if there are load balancers that would allow routing of traffic based on POST body.
  • 784
0 votes
1 answer
57 views

How can I pass values to the URL in ASP.NET Core 6 MVC?

I am trying to pass an Id from one controller to another by passing the value in the url and calling it in the other controller. So far I have tried everything and I can't get it to work. Can anyone ...
0 votes
2 answers
143 views

Symfony Route with Slash (/) in parameter not working

I have a Symfony Route configured with annotations where I want the last parameter to allow for slashes in it. #[Route('/getFtp/{customerName}/{taskId}/{domainName}', name: 'get_ftp', requirements: ['...
  • 2,384
1 vote
0 answers
108 views

Vue-router: router-view tag is not showing anything

I am new to Vue, and I'm trying to use vue-router for one of my projects but router-view is not working. This is a part of App.vue: <template> <div> <the-navbar></the-navbar> ...
  • 11
0 votes
1 answer
58 views

Page doesnt update despite route url changed

I am working with sveltekit+vite project. There 3pages here. It should navigate from one page to another page without reloading browser. I am using navigate('/') from 'svelte-routing'. But the page ...
0 votes
0 answers
9 views

Lazy loading route remains unchanged even after passing id

Library is the parent component. In Home page, when I click on Library icon, I am led to Library page with URL localhost:4200/library, which is expected. In Library page, there's list of books. When I ...
  • 121
0 votes
1 answer
66 views

Validate URL Parameters on Every Route Change and Redirect

I'm working on an application where most URLs starts with a couple of dynamic parameters. Something like this: https://projects/:projectId/:subProjectId/<service>/.. However, currently there is ...
0 votes
0 answers
56 views

Caddy2 - Routing with php_fastcgi and path

I'm running a Caddy server with php on localhost My server is running perfectly on the main path : http://x.x.x.x/index.php. This is my initial configuration : x.x.x.x:80 { root * /var/www/...
  • 491
0 votes
1 answer
42 views

Having issues generating URLs for custom routes to include the users culture in the RouteValues

I'm trying to create a custom route which will include the users culture in the route (RouteValues). Using default routing convention everything works fine. I have the following controller: public ...
  • 3
0 votes
1 answer
46 views

Why does my ASP.Net 4.8.1 Webform URL still show the query string?

I'm attempting what seems like a trivial set up for friendlier looking URLs with routing. I'm not getting the formatted URL, always the usual one with query strings. Here is the relevant code for the ...
0 votes
2 answers
26 views

Next Js take several params in the root

Suppose, I want to take params region and lang in URLs like: https://root.com/{region}/{lang} https://root.com/{region}/{lang}/school How do I do that? I tried Dynamic Routing, but it doesn't seem to ...
2 votes
1 answer
158 views

Codeigniter 4 - REST with Auto Routing improved

I have a controller App/Controllers/Api/Orders.php <?php namespace App\Controllers\Api; use CodeIgniter\RESTful\ResourceController; class Orders extends ResourceController { protected $...
  • 475
0 votes
2 answers
35 views

Removing .html from end of url in javalin

I'm using Javalin to serve my static web pages, which I've never done before. I know it's possible in Nginx to remove the .html from the end of your url but still route to the correct page, for ...
0 votes
1 answer
23 views

Object parameters inputted from a get routing method are being stored as an object inside an object parameter

Im trying to build a router that lets you save objects into an array using the data inputted client side through a get method. However, its saving the client side inputs within one of the object keys ...
0 votes
0 answers
10 views

route to a specific component in angular from email [duplicate]

Working on an Angular app where I need to route to a specific URL which will be receiving in the email. But to access that particular route, user must be logged-in. So, at first, when user click that ...
0 votes
0 answers
28 views

react router dont work if trying access other page direct by the URL

I have been experiencing an issue in which the page redirection in my app does not work as intended when I publish it on a hosting platform, such as firebase hosting. Specifically, I have noticed that ...
0 votes
0 answers
56 views

International routing in Next js based on region

I am using next.js version 12.2.5. I want to create internationalized region-based sub-path routing in my web app as https://www.apple.com/ do. Let's say the user from Australia lands on my web app, ...
1 vote
0 answers
286 views

NextRouter was not mounted

I am trying to implement a search feature for my property renting app. I added the Nextjs Router. When I go to localhost:3000/search, however, I get this error: Server Error Error: Error: NextRouter ...
0 votes
2 answers
191 views

ASP.NET Razor Page - How do I redirect user if they try to access invalid URL?

I have .NET 7 asp.net razor pages app, I want when somebody types "/invalidUrl" to get redirected to 404 Not Found custom page that I created. I can't find a solution. Can somebody tell me ...
0 votes
0 answers
59 views

.net 7 redirect unknown cultures, getting 404 when not supplying culture

When i route to a page and supply the culture it works as intended ie. localhost/en-us/page/index.cshtml. but when i go to localhost/folder/page.cshtml I get a 404. I would like to know if its ...
  • 21
0 votes
0 answers
35 views

Use Same Component as Multiple component with same nature , Using the title name of clicked component

Suppose I have created a single component In an angular Project , and I have few more components with exactly same nature, I just don't want to create another components for them , Can I route ...
0 votes
1 answer
180 views

Angular routing does not work properly for modules

I am creating a management system that has multiple modules present in it The entry point for the application is login-module On successful login, it redirects the user to main-module And from main-...
1 vote
0 answers
103 views

Redirect the login page based on domain URL value on React JS

I have created the Simple React JS with Spring boot JWT authentication application. On my react js application default landing (Index) page was login.js. And I have another login page file named as ...
1 vote
0 answers
62 views

Firebase Hosting copy and paste dynamic url not working

I'm stuck on where to search / what to search for regarding this issue, so I'm looking for some help. I have a site that has user-generated posts with uid's. When someone navigates through the site, ...
0 votes
1 answer
83 views

PHP routing - How can I implement 404 page on wrong url routes?

everyone. I have a basic router created in PHP. I can redirect to any page I want, if there is a callback function the callback function gets executed and if there is a page (String instead of a ...
  • 183
0 votes
1 answer
167 views

Creating a dynamic route

I am trying to create dynamic routes using ASP.Net Core and Razor Pages. Basically, I have two razor pages. One is called Pages/Home.cshtml and another is called Pages/Calendar.cshtml. Each user that ...
  • 3
0 votes
1 answer
109 views

Angular router-outlet overwrites page

I work on a larger application with lots of reusable parts that aren't really all that reusable yet. What I have in mind is creating a module for dialogue windows, that decides what kind of a dialogue ...
1 vote
1 answer
532 views

Dynamic Route at Root Level in Next.JS

I am trying to create route for the product page and product listing page at the root level in next.js but I am not sure how it will work because anything in the route will go to route level file. I ...
  • 423
0 votes
1 answer
324 views

Route index page to dynamic page in Next.js [duplicate]

I'm working on a Next.js project with this structure: pages [site] [id].js index.js But I wan't to combine both.js since they have the same code. But if I remove the index.js, the request to index ...

1
2 3 4 5
101