5,121 questions
0
votes
1
answer
85
views
Using [FromQuery] with a .NET controller for an optional boolean query string parameter where presence alone should set it
.NET has [FromQuery] to get query parameters on the path.
For instance my/foo?bar=1 maps to:
public class MyController : Controller
{
[HttpGet]
public async Task<Whatever> Foo([FromQuery]...
0
votes
1
answer
222
views
Express 5 optional route parameters (:param?) throw PathError with path-to-regexp
I'm using Express 5.1.0 with Node.js v22.19.0, and I want to define a route where the parameter is optional, like /directory or /directory/someFolder.
Here's the code I tried:
import express from '...
0
votes
2
answers
80
views
SvelteKit 5 routing
My folders structure:
src/routes/[lang]/
├── +layout.svelte
├── +page.svelte
├── +page.server.ts
└── [category]/
├── +page.svelte
└── +page.server.ts
The problem is that if I am ...
1
vote
0
answers
124
views
Identity Pages give 503 when navigating to them. They have different path base URI than the Blazor Pages
I am building an ASP.NET Core 8 web application with Blazor pages. The URI I have been assigned for my web application on the production server is not hosted at the root / of the server but at the ...
-1
votes
1
answer
108
views
Netlify Redirects Not Working for Forcing .html URLs
I’m running into an issue with my static site, and I could really use some help. Here’s the situation:
Project Structure:
My project is a simple HTML, CSS, and JS site with the following structure:
/...
0
votes
1
answer
140
views
GCP load balancer url re-writing and backend-mapping not happening the way I'd expect
I am using a classic application load balancer with two backends. I want my main backend to handle most requests and my auth backend to handle requests to /auth/*. I've been playing around with ...
1
vote
2
answers
81
views
AppEngine Dispatch rules not applied in order for hostnames?
I have a bunch of AppEngine services in a GCP project.
Let's call them red-service, green-service and default, with the project being myproject.
According to the docs, the standard way to reach a ...
0
votes
1
answer
54
views
SvelteKit Duplicate Routes in Layout Groups
Is it possible to have the same route be on different layout groups in SvelteKit. I want to have two different layout groups "/(private)/(app)" and "/(public)/(landing)" that ...
0
votes
0
answers
43
views
How should I handle the slash in search terms in Spartacus Commerce Cloud?
The official documentation has provided a way to handle the "slash" symbol in product names, by using a PRODUCT_NORMALIZER.
https://sap.github.io/spartacus-docs/adding-and-customizing-routes/...
-1
votes
1
answer
45
views
Shallow Routing throws 404 when typing address directly or reloading item url. How to fix this?
Shallow routing works well when clicking on an item
Shallow routing throws 404 when typing item url directly
Link to Stackblitz that shows the issue
src/routes/(news)/+layout.svelte
<script lang=&...
1
vote
0
answers
51
views
Does changing routing url in rails using translated paths affect google search results?
After doing research, I've learned that having 'underscore' in your url path can affect google search results, from this google recommended URL structure:
Google recommended URL structure
I initially ...
0
votes
1
answer
350
views
Using ingress controller with local kind deployment: is it feasible to access all services under one root URL?
I have a local kind deployment which deploys 3 services, MLflow, Katib and a K8s dashboard. I can deploy these as services and access them via port forwarding to each service and visiting the url in ...
2
votes
0
answers
235
views
Bun uses wrong path for css chunk files. How to fix path?
Bun uses wrong path for CSS chunk files. How to fix path if frontend is in different directory than server?
I just started using bun to deploy a fullstack Dev Server while following bun.sh/docs ...
0
votes
0
answers
46
views
Web site in Blazor with both wasm and server side
We would like to create a web app in .NET 8 that has both wasm and server side pages. The server side pages should be hosted on a different site so that it can be upgraded separately.
Home page - wasm ...
0
votes
1
answer
74
views
"Laravel Route Redirects to Deleted View Despite Clearing Cache and Restarting Server"
I just started learning Laravel, and I faced an issue. I made two view files. The first one is home.blade.php and the second one is welcome.blade.php. In the routes folder, web.php, I used the Route::...
0
votes
0
answers
149
views
flex gateway mulesoft configuration
Can you please help me configure my Flex Gateway path? I have a request {{mu_url}}api/distribution/internal/v1.0/whatsapp/twilio/content/HXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/approvalrequests that I need ...
1
vote
1
answer
47
views
Django view is rendering 404 page instead of given html template
I'm working on a wiki project with django.
I'm trying to render 'add.html' with the view add, but it sends me to 404 instead. All the other views are working fine. How should I fix add?
views.py
from ...
0
votes
0
answers
44
views
.NET Core Routing for unwanted folder or extension
I am implementing the routing in .net Core 8.0 project. First goal is to redirect any .aspx page request to the latest common page. I have placed these combinations to address all possibilities. it is ...
0
votes
1
answer
100
views
Direct Access Routes in Next.js Return 404, but Work Fine in Development Environment
Problem:
In a Next.js application hosted on Azure App Service, accessing routes directly (e.g., /vehicle-details) results in a 404 Not Found error.
However, navigating to these same routes via ...
-1
votes
1
answer
360
views
how to use getStaticpath() to handle the unknown params in astro?
with
Astro v 4.8.1
using static generator option in Astro,i.e. output: "static"
default defineConfig({
site: "https://abc.xyz",
prefetch: true,
output: "static"
})...
0
votes
1
answer
298
views
SolidJS Router doesn't render page - Navigation doesn't work
On navigation, even though the path of a Route is added to the url in the search bar, the component of the Route is not rendered. It only renders on refreshing the page.
My Header has buttons which ...
0
votes
0
answers
64
views
RevalidatePath only fires once in server side action
So, I am very new to NextJS and I was building an app where a user can sign in and perform CRUD operations relative to the user or even the user himself.
The architecture I was following (and I don't ...
1
vote
2
answers
69
views
Load route component based on device
I would like to be able to display different components based on the device the application is being viewed on. I am currently using the below to change the component and it works. The issue is that ...
1
vote
1
answer
245
views
IAP-enforcing load balancer to single backend to NGINX to applications, or load balancer to several backends to applications?
Everything's on GCP
Various tools and applications are accessed via Cloud Run instances
These should all be protected by IAP + IAM, so a Load Balancer's set up w/ appropriate backend configuration
I'd ...
1
vote
1
answer
49
views
The parent component will be activated only when the child route is activated
I want a route structure like this:
If I go to the "/sale" route:
dashboard
feature
sale
If I go to the "/" route:
dashboard
That is, if the child route is not activated, ...
0
votes
1
answer
47
views
How to use ASP.NET Core attribute routing to get full path after endpoint name
I am very new to routing in ASP.NET Core.
The system I am prototyping has strings with associated names like:
/dev/accounting/people = "people string"
/test/it/documents = "some it ...
0
votes
4
answers
80
views
I am not able to route to another component in angular
<div class="mr-3 ml-3 mt-0 mb-4 leave_card_outer" *ngIf="leaveStatus !=null">
<div class="row bg-white p-2">
<div class="col py-3 ...
0
votes
0
answers
508
views
Navigation to a parallel route(slot) in a page in next js 14
parallel routes
I've been trying to navigate to a section of my project's home page. I have 3 parallel routes in the home page and a navigation bar on top that consists of links to other pages and ...
0
votes
0
answers
61
views
PHP Error Message Handling Within Router Logic
I'm working on a basic ticketing system, where a user registers, logs in and creates tickets etc. Today I setup a very basic routing system, where my index page uses a switches and cases to redirect ...
1
vote
1
answer
128
views
ASP.NET Core 8 routing with culture params and also areas
I am working on an ASP.NET Core 8 project where I have
MVC public section
Area -> MVC Admin section
Area -> Razor pages Identity area
Also I have localization to run application in English and ...
-1
votes
1
answer
105
views
Next.js dynamic internationalization pathing for my project
Ok so i have this project that i am making in Next.js which utilizes App Routing and Crystallize which is GraphQL driven CMS, the folders are in english but i need to integrate internationalization ...
0
votes
0
answers
277
views
Go router Optional pathParameters
In StackOverflow, you can access question through two different URL
https://stackoverflow.com/questions/:questionId/:slug
https://stackoverflow.com/questions/:questionId
I am trying to build the ...
0
votes
0
answers
53
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
242
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
81
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
153
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(
...
1
vote
1
answer
1k
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....
0
votes
2
answers
109
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
127
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: "...
1
vote
1
answer
148
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
426
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
246
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
51
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 ...
0
votes
1
answer
279
views
AWS ALB Rules Routing issue
I have two rules set up in my ALB:
One for routing to Travel APIs.
Another is for routing to App APIs, which includes endpoints like auth and user.
I want to redirect traffic based on the URL path. ...
1
vote
0
answers
26
views
Re-direct in react using .htaccess
Here is my .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
...
1
vote
0
answers
55
views
Angular routing not loading component properly
I have a problem regarding angular routing not loading my component the first time.
Example:
When i write "http://localhost:4200" i getting redirected to "http://localhost:4200/ENU"...
0
votes
1
answer
87
views
How to get Flask routing to work in shared hosting
I have built a minimal Flask application and installed it in Namecheap shared hosting, following the instructions in https://dev.to/lordghostx/how-to-host-flask-applications-on-namecheap-cpanel-299b. ...
0
votes
0
answers
58
views
Route IIS Web traffic to different website (same name) on a different server based on URL
We have a multi-tenant website (IIS) and want to route some customers to a dedicated version of the website running on a different server. We don't want to change the base URL so that we don't impact ...
0
votes
0
answers
23
views
Youtube and other social media sites is not connecting on my windows 11
When i try to open youtube, it is not connecting. It Giving the error message like
"Your connection is not private"
Please help me to solve this problem.
I tried to open youtube or any ...
1
vote
0
answers
90
views
Routing issues with PHP, Symfony and XAMPP on local machine
I recently took over a website from another developer. The website was developed in PHP, a language with which I have no experience, although I am familiar with full-stack JavaScript. The code works ...