Questions tagged [routes]
Questions about mapping URLs to Controllers and Actions.
routes
33,487
questions
2
votes
5
answers
7k
views
Adding Sitemap file and route in laravel
I have a sitemap.xml file in my view folder and this is the route:
Route::get('sitemap.xml',function() {
return response()->view('sitemap')
->header('Content-Type', 'xml');
});
But when i ...
-1
votes
1
answer
17
views
Why does my node.js server fetch files from a different location than what's in the url?
I have two websites on my Windows Server 2022 Datacenter (a VM on AWS). I set them up in sort of an unorthodox way. The first is at http://www.planetshah.com/pwv and the other is at http://www....
9
votes
6
answers
14k
views
Nestjs: middleware for all routes except /auth
I am started with nestjs recently and i want apply a middleware for all routes, except the auth route.
In the documentation it says that I can add all the controllers or paths of the routes where I ...
-3
votes
0
answers
16
views
Struggling to fix the routing problems I'm having in php [closed]
I'm having problems accessing the pages on my website using the routes that I set in the route.php file eg. localhost/online_library_1/categories, does not work, here is my folder structure, I don't ...
0
votes
1
answer
16
views
Angular 17 <router-outlet> works wrong
So i am building projects in angular and i found out that in devtools i can see my router-outlet and components are generated outside of it like that:
enter image description here
app.routes
`import { ...
0
votes
1
answer
35
views
Laravel : i have this message "page not found" without any error
//my route
Route::get('catalogue/{categorie?}','App\Http\Controllers\CatalogueController@index')->name('catalogue');
//my controller
namespace App\Http\Controllers;
use Illuminate\Http\Request;
...
4
votes
4
answers
7k
views
Is there any way to use goto() without reloading page on SvelteKit?
I have one problem: I need to add additional part to url (IE: I have /route and I need to convert it to /route/something without reloading of the page. I’ve tried to use goto(), but it reloads the ...
0
votes
0
answers
20
views
how to load lazily loaded route in mat-sidebar-content?
I've a structure in Angular and we are following module based structure. Not standalone components.
SideBar Component
<mat-sidebar-container>
<mat-sidebar>
/* Sidebar Menu Items */
</...
10
votes
6
answers
10k
views
Alternative to popUntil in go router in flutter
I was wonder if there is alternative to Navigator's popUntil() method, or any workaround to achieve the same.
If i were to use Navigator. I would use like so:
void _logout() {
Navigator.popUntil(...
0
votes
1
answer
38
views
Blazor upgrading from .NET 6 to .NET 8 - NavigateTo not working
I am moving a functioning .NET 6 application to .NET 8.
This was a wholly WebAssembly project. I have retained that but use the server side rendering of the home page to improve the user experience.
I ...
0
votes
0
answers
12
views
《Google maps routes API》When doing real-time navigation, why is there no straight-ahead indication for the vehicle's direction of travel?
When I use the Google maps routes API for real-time navigation, I find that the track points do not have better segmentation step data. As a result, I cannot determine whether the current route is ...
33
votes
5
answers
29k
views
How to add global route prefix in asp.net core 3?
Legacy .net core frameworks used UseMvc() for adding global route prefix. How to make it for asp.net core 3 without UseMvc() ?
0
votes
2
answers
690
views
Define global route for REST API controller
I have the following case: in .NET framework there was the possibility to define a global route for API controllers and their methods. By getting the defaults and add a controller route you could ...
0
votes
0
answers
26
views
SvelteKit Redirect 308 when trying to access internal API from +page.server.ts
I am trying to retrieve data from a local API endpoint route within my SvelteKit application. I can confirm the endpoint works by navigating directly to it at http://localhost:5173/api/getSummary?...
0
votes
4
answers
4k
views
React Route: 404 Not Found after refreshing the deployed application
I'm working for a company and just deployed a project for them, but I encountered an issue. so, when you go to the link http://domain, you can go to the page, and from there you can go to any other ...