33,399 questions
0
votes
0
answers
55
views
How attach a throttle middleware to a route?
I am having problems with attaching a middleware to my existing routes.
Problem is with extra parameters, which cause syntax errors.
My current route:
Route::get('summary/{topicid}/{issueid}', [App\...
0
votes
1
answer
248
views
Laravel 11 Controller Routes
I have upgraded to Laravel 11 and obviously having to update some code.
According to the docs, you point to a controller class with use:
use App\Http\Controllers\UserController;
and the route entry ...
0
votes
1
answer
24
views
Why does form stay in scope between route calls in flask?
Im going through the flask mega tutorial chapter 5 and realised there is a part I don't understand: The formvariable seems to stay in scope between calls to a route function, see below code (...
0
votes
0
answers
24
views
vuejs scoped style backgroundcolor
I am currently working with component based routing in vuejs and when i want in component a to have a background-color that is red and component component b should be like green it just takes the ...
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
588
views
Can Compose Multiplatform navigate and change routes on Web while maintaining URL state?
I've been exploring Compose Multiplatform and went through the documentation, particularly Compose Multiplatform Navigation Routing. Despite the library being supported on the web, the docs mention ...
0
votes
1
answer
58
views
How to make a single-layered path or route in ruby on rails
I'm new to Ruby on Rails, and I'm wondering if it is possible to create a single-layered path name in Rails.
As far as I know, you can only create routes like home/about. Is there a way to only create ...
1
vote
1
answer
61
views
Laravel Links and route not work on server
I'm using laravel 11, everything working ok on localhost, but after upload on server all navbar links not work all pages not found , only home page working.
<ul class="navbar-nav ms-auto"&...
0
votes
1
answer
60
views
My URL is not calling the function of the controller Yii2
I have a function name import in the contact controller. The issue is that when I am trying to make a call to the function with https://example.org/contact/import, the import function is not executing....
0
votes
1
answer
49
views
routes error on nested routes - react navigation
<NavigationContainer
theme={navigation_theme}
linking={{
prefixes: ["https://startja.agenciaboz.com.br", "http://localhost:8081"],
config: {
...
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 ...
0
votes
0
answers
41
views
How to retain the vehicle mappings apply constraint in Google OR-Tools?
here goes my first question in stack overflow.
I'm tasked with implementing a max stop constraints per vehicle in my VRP.
here is the issue that Im facing.
`"truckLevelConstraints": {
&...
0
votes
0
answers
70
views
ASP.NET Core : DELETE route handler not working
I am trying to learn how to create REST API using ASP.NET Core, and I've managed to create working GET and POST requests, but for some reason, the DELETE request is not working. What am I missing?
...
0
votes
0
answers
58
views
How to get the method name with the url using django.urls.get_resolver()
I am getting these urls with django's get_resolver() function for a class:
^api/asset_management/^^get_assets/$
^api/asset_management/^^get_assets\.(?P<format>[a-z0-9]+)/?$
^api/asset_management/...
1
vote
0
answers
28
views
Issue with Laravel project hosted on AWS -/public url and route errors
I’ve hosted my Laravel project on AWS. The project runs successfully, but the URL includes /public after the directory name. For example: http:////public.
The project is built entirely with Laravel, ...
2
votes
1
answer
408
views
How to set the root path of the url for my api endpoints?
I don't want to use UsePathBase() for some reasons. I try to use MapExtensions.Map() like below. But it does not work. Respond with "404 Not Found" when I request "/api/v1/...
1
vote
0
answers
54
views
API Endpoint - Calling path/file.php works but doesn't by endpoint
I made a simple API with PHP
When I call it (Postman or script) with https://www.example.org/api/index_api.php it works. I get the return value.
When I call it (Postman or script) with https://www....
1
vote
0
answers
72
views
Always render an intercepted route in a modal even if navigating to the url directly in next.js
I am using the Parellel routes and route Interception to create a user experience that opens a form (the /new route) in a modal for the user to create their new thing. The route is /posts/new.
However,...
-5
votes
1
answer
89
views
is there a way to pass down props from parent component to child component
https://github.com/89missions/reactproblem/issues/1 I have posted all three files here please help.
react-dom.development.js:4312 Uncaught Type Error: props.UserName is not a function
at userValue (...
1
vote
0
answers
44
views
Laravel 11 - I want to create dynamic routing for multi level access but without passing the same parameter each time
In laravel 11 i setup my route like this :
then: function(){
Route::middleware(['web', 'admin'])->prefix('admin')->name('admin.')->group(base_path('routes/admin.php'));
...
1
vote
1
answer
77
views
routing stuck (stopped working) after a few clicks if a router is declared in child component
on Angular version 18.0.0
//package.json
"@angular/animations": "^18.0.0",
"@angular/common": "^18.0.0",
"@angular/compiler": "^18.0.0",
&...
0
votes
0
answers
391
views
Get 404 error when refreshing a page in Angular 19 and ng serve
I'm building an application that have a login page, the angular version I use is Angular 19, and I run my app through ng serve.
When I access the link http://localhost:4200/ from my browser, I being ...
0
votes
1
answer
41
views
Laravel route naming bug: not getting resource route naming as supposed to
I am facing an issue with Laravel / React.js app
I have this web.route configuration:
Route::middleware(['auth', 'verified'])->group(function () {
Route::redirect('/admin', '/admin/dashboard');
...
3
votes
2
answers
4k
views
NextJS migrate from App Router 14 to 15. Property 'params' is missing in type 'Context' but required in type 'RouteContext'
I have just migrated from NextJS 14 to 15 using the app router method. On Windows.
I am having an issue with one of my static routes. It is not dynamic route, but is gettings errors as if it was.
...
-2
votes
1
answer
54
views
403 Forbidden in Laravel
Description:
Whenever I visit the URI '/storage/decode/hello' the 403 error is shown, but when I go to '/storage/decode' URI, then the code works perfectly fine.
Route::prefix('storage')->match(['...