Questions tagged [url-routing]
URL routing is the process of mapping a URL to its content.
url-routing
5,110
questions
0
votes
0
answers
11
views
cannot enter the url manually after writing a middleware in nextjs14 (app router)
since i've added the middleware which i will provide to you,
i cannot enter the urls manually and it errors out.
i'm using "next-intl" internationalization and i created a middleware to ...
0
votes
0
answers
41
views
Dynamic URL from API in Next.js
Using Next.js (app router). Called the api (edamam api) , which is rendering the list of items.However inorder to access the item details when I click on the link 'view details', gives 404 page not ...
-1
votes
1
answer
34
views
Can Deno Fresh serve HTML files inside the routes folder?
I put test.html in the routes folder, but both localhost:8000/test and localhost:8000/test.html redirect me to the 404 page. The documentation Routing | Fresh docs doesn't discuss about this.
Or is it ...
0
votes
1
answer
53
views
How to replace file-path-based URL in ASP.NET Core
In an ASP.NET Core MVC project, how do I change the URL for Razor pages from the default format like http://localhost:5088/Home/Faq, to a specific URL such as
http://localhost:5088/freq_asked
...
0
votes
0
answers
59
views
Connection Timeout on External API Call on Server but Works Locally
I have a Django 4.2.2 application running on Python 3.11. One of the views is as follows:
import requests
from django.http import HttpResponse
def get_captcha(request):
response = requests.get(
...
0
votes
0
answers
37
views
Unable to get React Native Expo app to navigate to a particular route
I got stuck yesterday when trying to get Expo's file-based routing working for a particular route on a project I'm working on. The folder structure looks as follows:
index.tsx
_layout.tsx
+not-found....
-1
votes
0
answers
13
views
301 Redirect dynamic urls from database in .NET Core 3.1
I have thousands of links which need to be redirect to new URL using 301 Permanent Redirect. I have all these urls in the Database table. I would like to know where should be these URLs should be ...
0
votes
2
answers
66
views
Remove id in url in .net core
How do I omit the Id from the URL? Change from this URL:
https://localhost:7002/Product/109
to this instead ====>
https://localhost:7002/Product/productName
My controller is:
[Route("/...
0
votes
0
answers
40
views
Adding generic route map to ASP.NET Core 3.1 app
I have an ASP.NET Core 3.1 MVC app, I have in my startup.cs file the predefined call:
app.UseEndpoints(endpoints =>
endpoints.MapControllerRoute(
name: "...
0
votes
0
answers
24
views
LinkGenerator.GetUriByPage method not working
OK, I have solved my problem - the one described below. I removed the Route Pattern constraint 'alpha' and replaced it with 'regex(^([0-9]+-){{5}}[0-9]+$)}', which did the trick. The 'alpha' ...
1
vote
1
answer
80
views
How to make this URL pattern acceptable in ASP.NET Core?
I am working in an ASP.NET Core project with Razor pages and I am trying to make this URL pattern
/{clientName}/Forms/{page}
acceptable to route. You should know I'm using Razor Pages NOT MVC.
...
2
votes
1
answer
62
views
How to do page routing for an R Shiny app that works locally and on shinyapps.io
I've created a reprex for an R Shiny app where I want to give the appearance of subpages for navigation, swapping the main content of the page out depending on the URL given.
The closest I've got to ...
0
votes
1
answer
43
views
Nginx Configuration: Redirect Specific Path and Preserve URL
I'm configuring Nginx to handle redirects for a domain, but I'm encountering an issue with preserving the URL for a specific path. Here's my scenario:
I have a domain, let's say landing.immancrze.us, ...
0
votes
0
answers
9
views
Static files path generated incorrectly in Django project
Description:
In my Django project, the static files path is generated incorrectly, appending the current page URL before the static URL. For example, when I'm on the about page, the path becomes http:/...
0
votes
0
answers
38
views
PHP Custom MVC pass multiple parameters
I'm creating a simple MVC framework for a new version of my website I'm working on. Currently I have simple routing, such as /about-us etc ...
Due to my lack of PHP programming experience, I am ...