5,122 questions
0
votes
1
answer
80
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
2
answers
70
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
votes
1
answer
101
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:
/...
1
vote
2
answers
75
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
0
answers
42
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
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 ...
2
votes
0
answers
230
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
1
answer
67
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::...
1
vote
1
answer
43
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
1
answer
93
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 ...
0
votes
1
answer
286
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 ...
1
vote
2
answers
63
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
243
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 ...
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
0
answers
505
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 ...
1
vote
1
answer
125
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 ...
0
votes
0
answers
267
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 ...
-1
votes
1
answer
234
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
0
answers
152
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
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("/...
1
vote
1
answer
144
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.
...
0
votes
1
answer
240
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
1
answer
275
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
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
0
answers
56
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 ...