5,130 questions
Best practices
0
votes
1
replies
57
views
SPA Routing: Query Parameters vs Hash Fragments
I'm building a small Single‑Page Application that does not require SEO. It runs entirely from a single HTML file and doesn't need any server‑side routing or additional requests.
I'm choosing between ...
2
votes
1
answer
118
views
Is there a reliable way to differentiate browser back/forward navigation from direct URL edits in a hash-based Angular SPA?
We are using hash-based routing in an Angular SPA.
There are two kinds of navigation I want to handle differently:
Browser Back/Forward buttons
→ Listen to the native popstate event and handle this ...
0
votes
0
answers
54
views
404-error when refreshing or hand routing on deployed vercel version
Heyy,
When i refresh or handroute some page on my deployed version i always get a 404-error. The automated route in the app works as expected. On the web there are a lot of fixes that say to change ...
0
votes
1
answer
97
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
264
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
84
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
125
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
113
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
152
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
83
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
66
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
45
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
47
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
56
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
450
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 ...