33,397 questions
-1
votes
1
answer
81
views
using server actions with route handlers when making NextJS API endpoints
I have a web app that needs to expose APIs for mobile app (GET, POST, PUT AND DELETE endpoints), currently i'm doing the fetch in both client and server components, but i looked at the client ...
-1
votes
2
answers
70
views
Laravel: route not defined but it is [closed]
I have Laravel app. I defined route in routes/web.php like this:
Route::get('/{slug}/discussion', 'DiscussionController@showForDistrict')->name('district_discussion');
I have DiscussionController ...
0
votes
0
answers
62
views
Routing issues between OpenVPN and LAN in OpenWRT
I am trying to set up routing between an OpenVPN network (10.8.0.0/24) and a LAN network (10.10.10.0/24) on OpenWRT. I have an OpenVPN server with the configuration:
Configuration of the OpenVPN ...
0
votes
1
answer
104
views
CodeIgniter 4 Routes and Validation
I'm just a newbie with CodeIgniter and I'm so sorry if my english so bad.
I want to create validation for input login, this is my view:
<form action="/Home/login" method="post"&...
1
vote
0
answers
62
views
Solving vehicle's loading and routing problem together
I am struggling with modeling the following problem:
I have a list of vehicles with known capacity
I have a list of boxes that has to be loaded onto a vehicle, each vehicle has known size that ...
0
votes
0
answers
36
views
How to Dynamically Manage Route Paths in React to Avoid Manual Updates Across the Application?
I have a Laravel backend with defined routes like this:
Route::get('task-list', [TaskController::class, 'taskListInfo']);
Route::post('task-save', [TaskController::class, 'taskInfoStore']);
Route::put(...
1
vote
1
answer
58
views
Global Angular Route Animation without Data property?
I am working on a corporate Angular web application and am creating a proof of concept to add an "ease-out/ease-in" transition animation to all route changes. I've followed the Angular ...
1
vote
1
answer
159
views
How do I reuse pages and controllers with application parts but use a different URL route?
I am trying to reuse a set of controllers, razor pages and content (wwwroot) from another assembly, however, I want these pages and controllers to run in a sub route of the existing pages.
The pages ...
0
votes
0
answers
15
views
Symfony 7 301 redirect in routes.yaml does not work
Preparing a 301 redirect should be straightforward, but for some reason, I cannot get the reroute to trigger properly. I am trying to reroute "/some-old-path" to "/some-new-path" ...
2
votes
1
answer
227
views
Why Does My Go http.ServeMux Routing Return 404 for Versioned API Paths?
I'm experimenting with routing in Go and ran into an issue where my API always returns a 404 Not Found when I try to access an endpoint like:
https://localhost:8080/api/v1/users/login
Here’s my ...
0
votes
0
answers
25
views
How can I create routing Keys in Rabbit MQ with Not Equals, AND, OR and Equals?
I went through Rabbit MQ documentation on routing keys. I see that there are only operators * and # to define a routing key.
I have about 10,000 users whose birthday notifications are to be processed. ...
0
votes
1
answer
49
views
Razord Page specifying Parameter and SupplyParameterFromQuery for Property gives null result for Parameter
There are 2 routes to my .NET 8 razor page:
https://localhost:7215/DemoForm/30030443-2b0c-4b94-959d-fb6132dc164f
https://localhost:7215/DemoInfo?oid=30030443-2b0c-4b94-959d-fb6132dc164f
Demo.razor:
@...
0
votes
0
answers
71
views
Error: The default export is not a React Component in "/page"
I am getting this error after I moved my page.tsx from app directory to the group route that I created in the same app directory. The reason why I moved this home page to group route because I want to ...
0
votes
1
answer
82
views
Is there a way to easily implement type-safe routing in Blazor?
I am working on a Blazor project, and couldn't help but notice that the navigation is not type-safe. It is really hindering the development process, as it is really easy to make mistakes related to it....
1
vote
1
answer
111
views
Prevent navigation between microfrontends in single-spa-angular
I'm new to the world of microfrontends and I'm facing an issue.
I have an application with a microfrontend architecture, and I'm using single-spa-angular to mount and unmount my apps when needed.
Here'...
0
votes
2
answers
207
views
ASP.NET Core MVC : MapControllerRoute with generic pattern not allowing POST
I have the following setup created:
app.MapControllerRoute(
name: "Product",
pattern: "product/{*url}",
defaults: new { controller = "Product", action = "...
-1
votes
3
answers
159
views
laravel 11 : resource route doesn't work the same way when it's detailed in some route lines
laravel 11 here
in web.php
Route::resource('event', EventController::class);
works ok
when i replace this line by
Route::get('/event', [EventController::class, 'index'])->name('event.index');
...
1
vote
1
answer
85
views
devise and language by multiple domain
I'm trying to use multi language by domain, for example I have domain.fi.local for language Finnish and domain.es.local for language Spanish and on every of them you can switch to English and I have ...
0
votes
1
answer
134
views
Laravel route of Route::get(".well-known/acme ..." not served
I'm trying to validate a server for Let's Encrypt.
Route::get(".well-known/acme-challenge/72kwJd49Bnm200zClrljFuKM4Kg4WGTxeYL_Q106Guk", function() {
return Response::make('...
0
votes
0
answers
37
views
How to model the optimal routing problem of a vehicle considering dynamic traffic flow in cplex opl
I want to formulate a problem in CPLEX OPL where a vehicle travels from a source node (road junction) to a destination node (road junction) while making a mandatory stop at one intermediate location. ...
0
votes
1
answer
95
views
TYPO3 12 with SOLR - readable URL
One of my IndexQueues looks like this
plugin.tx_solr.index.queue {
pressphotos = 1
pressphotos {
type = tx_company_z_pressphotos
label = myPressphotosLabel
fields {
...
1
vote
2
answers
997
views
Auth::user() Undefined method 'user'
Iḿ using laravel 11, with the breeze starter kit and Livewire (volt class api) with alpine.
In a controller named 'DashboardController' I'm trying to use 'Auth::user' to render a view with the tasks ...
0
votes
1
answer
81
views
How to prevent that super admin’s credentials can be used to log in as a tenant?
I am using Laravel Jetstream for authentication, which provides login and registration functionality that redirects users to the dashboard.
Currently, in my web.php file, I have set up routes with ...
0
votes
0
answers
70
views
Why is the route with parameters not processed?
I just started practicing with ASP.NET Core, but I have already encountered a problem that I can't find a solution to for 3 hours. I wrote this simple code, but for some reason I can't process the ...
0
votes
0
answers
208
views
Angular Routing and nginx Configuration – Direct URL Access Returns 404
I'm hosting multiple Angular applications on a Windows machine using nginx. I have a landing page (index.html) that lets me choose between two Angular projects—protocolviewer and conficviewer—which ...
0
votes
0
answers
51
views
How to correctly and efficiently set up transitions between pages on a website
This is a server
import express from "express";
import path from "path";
import fs from "fs";
import adminRoutes from './routes/adminRoutes.js';
import clientRoutes from ...
0
votes
0
answers
57
views
Angular route doesn't render if pasting url directly or refreshing the page
I'm making a pastebin-like client on Angular 18 and so far the interface works great.
Only issue is that refreshing the page or trying to directly enter the website via the full url (very important ...
2
votes
2
answers
65
views
Expressjs how to distribute static file loading depending on the path in the address bar
There is such a simple server
import express from "express";
import path from "path";
import fs from "fs";
const __dirname = path.resolve();
const app = express();
app....
0
votes
0
answers
158
views
Controller and Routing Issues in a custom module in Drupal 10
I am getting a page not found error message when trying to create a Controller and Route in Drupal 10. I am working with the Acquia Drupal Module Development course. I have created the module and ...
0
votes
0
answers
110
views
Nuxt 3 dynamic route not updating content when navigating between project pages
Problem
I'm experiencing an issue with my Nuxt 3 application where navigating between project pages isn't updating the content properly. When navigating through the application UI, the URL changes ...
1
vote
1
answer
72
views
middleware for authorization to perform certain actions
I have implemented an API that is protected by JWT authorization layer. So on each endpoint before calling it I check that the user has a valid token before proceeding. It works flawlessly.
Now I want ...
0
votes
0
answers
50
views
Can I prevent the Next router from pushing back in history without any effects?
I have a simple code preventing a page with a form from closing when the form filling is started but isn't finished. Unfortunately, when a user tries to move to the previous page with the browser's ...
0
votes
0
answers
60
views
Vercel NextJS: How can I redefine the route of 404 error page
On NextJS (deployed in Vercel), by default, the 404 error page is .com/404. I need to change it to .com/errors/404.
I've tried reading the docs (https://vercel.com/guides/custom-404-page) and even ...
1
vote
1
answer
35
views
Angular module loading children, child route is not initialising on router.navigate
The app loads app.module where I give it a route:
export const routes: Routes = [
{
path: '',
resolve: { mockData: MockApiResolver },
loadChildren: () => import('./shared-components/...
0
votes
1
answer
130
views
vite react page not found (Cannot GET /mypage) after assembling the build and redirect on page using address bar
Reproduction:
npm create vite@latest
choose: react
choose: typescript
cd vite-project
npm install
npm i react-router-dom
App.tsx:
import { Routes, Route, BrowserRouter } from 'react-router-dom';
...
0
votes
1
answer
67
views
In GetMaterial.router Get.offAll() is not working. how can I remove all previous routes
class MyApp extends StatefulWidget {
MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@...
0
votes
2
answers
481
views
Blazor Web App 9 (Server / Gloabl) JWT Authentication
I am trying to implement JWT auth on a Blazor App 9 (using Server interactivity) but I can't seem to get app to route to the Login page when the user first starts the app. The Index has an [Authorize] ...
1
vote
0
answers
55
views
Routes API is not returning the train route
I am using route API
https://routes.googleapis.com/directions/v2:computeRoutes
This is the body I am sending
"origin": {
"address": "Delhi"
},
"destination": {...
0
votes
0
answers
70
views
How to generate page routes automatically based on "/pages" folder?
I am building an SPA with Nuxt and from the documentation I got the idea that all *.vue files under /pages folder will be automatically used to generate routes. When I run my app locally the routing ...
1
vote
1
answer
110
views
How to navigate Angular routes without full reload in Puppeteer
I'm taking screenshot from a Angular website with Puppeteer and want to navigate routes without triggering a full page reload. Using page.goto() causes a reload, but Angular's client-side router ...
0
votes
3
answers
94
views
In Rails, is it possible to intercept a request to a mounted app?
I have a Rails app which uses Sidekiq (6.5.12).
Sidekiq is mounted using the following code in routes.rb.
mount Sidekiq::Web => '/sidekiq'
I would like to do something specific anytime a user goes ...
0
votes
1
answer
95
views
Implementing an offcanvas Svelte/SvelteKit component as a route
I want to support opening an offcanvas like this <a href="#cart">Cart</a> from any page. When the offcanvas is open, I want to be able to use the Back button to close it and be ...
1
vote
1
answer
35
views
npm run build getting error an Next JS app for dynamic routing v15.1.4
enter image description here
When I run npm run build getting error.
This is my app/test/[id]/page.tsx
export const generateStaticParams = async () => {
// Fetch data from an API
const res = ...
1
vote
1
answer
76
views
Flask: Getting error 404 on one route specifically
I'm trying to use Flask as the backend to make a small desktop app using Electron and I've hit a weird snag.
Essentially, I have a route, "/appendToList/<some_value>" that should be ...
1
vote
0
answers
89
views
Why is my Node.js server returning a 404 error for valid routes? [duplicate]
I am building a Node.js server using Express, and I have defined a couple of routes like this:
const express = require('express');
const app = express();
app.get('/api', (req, res) => {
res.send(...
0
votes
0
answers
13
views
GoogleMaps API returns incorrect waypoints or place ID's
I understand that the GoogleMaps API has a limit of 25 "stops" when I submit a list of locations. I've tried submitting my list as street addresses, lat-lon waypoints, or even place ID's. ...
3
votes
1
answer
256
views
Service not found the container inside "\ServiceLocator" is a smaller service locator that only knows about the "kernel"
Because I want my applications to follow some kind of DDD structure, I want my Controller, Entity, Repository, Form etc to sit within a specific directory. For example: src/Appication/Dealer/...
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
68
views
Routing with a suffix on the controller name
Given one or more controllers (within Areas), named for example CustomerController and OrderController, I would like to be able to route to them using either of the following at interchangeably...
/...
1
vote
1
answer
341
views
How to have separate route modules in FastHTML?
There is a similar question in How to separate flask routes to another modules but it is for Flask.
Basically I have this FastHTML python module, which references a lot more routes (here are only 2 ...