Questions tagged [routes]
Questions about mapping URLs to Controllers and Actions.
routes
33,279
questions
-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....
-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
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 */
</...
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 ...
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 ...
-3
votes
0
answers
24
views
Refused to execute script because its MIME type error [closed]
I'm trying to link a javascript file to a html file that is being render by my server at the route '/'. However when the html file is loaded in the browser I get the following error:
I tried using ...
-1
votes
0
answers
15
views
How to correctly route the packets through host and namespaces?
I am trying to route the packets from Client [Host], through namespaces [Demo0 -> Demo1], to Server [Host]. The packets should be routed to tun device 10.0.3.2, from where the black-box process ...
-1
votes
0
answers
43
views
The GET method is not supported for this route. Supported methods: HEAD.? [closed]
Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
The GET method is not supported for this route. Supported methods: HEAD.
I keep getting this error when trying to upload my Laravel ...
0
votes
0
answers
5
views
Nuxt running on CMS - how to ignore part of the path?
I am deploying an app on a CMS. The path that is requested might look like this:
https://preview-blockstest-chesheast.cloud.contensis.com/roads/potholes
However, my app doesn't know about this path (...
0
votes
0
answers
19
views
this.$router.push not working in nginx server
the all funciton of routing vue.js project is working well in local test.
However, this.$router.push method doesn't work when testing nginx server.
The nginx server has the proper configuration to ...
1
vote
0
answers
36
views
The getter 'MyRoutes' isn't defined for the class 'MyApp'
I have two screens in my app 1. homepage 2. loginpage and I want to navigate from login page to homepage on a button click through routes.
the routes are define in separate file utils(folder)=>...
-1
votes
0
answers
25
views
while using mongodb with express, delete route is not working? [closed]
I am using Mongodb with express and creating a simple chat program . while creating a delete route i am not able to render a form to confirm password and it didn't even response console.log(id);
// ...
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
0
answers
16
views
Hugging Face Gradio API integrate with Nextjs 14.2
I wanted to deploy my ML model on web, so i hosted the model on hugging face and wanted to use the api for using it with my own UI.
console error image is added for reference.
The Web framework is not ...
0
votes
0
answers
42
views
what is the better way to add conditional routing in rails
I have to change the route in a way that I need to have the original route as well as change the path of the route in a env is available.
this is how I am thinking of doing
custom_org = ENV['...
-1
votes
0
answers
19
views
How to use subdomains and routing after Clerk authMiddleware() deprication?
I need to code this:
TypeScript
export default authMiddleware({
publicRoutes: ['/site', '/api/uploadthing'],
async beforeAuth(auth, req) {},
async afterAuth(auth, req) {
//rewrite for ...
0
votes
1
answer
41
views
Creating [slug].tsx in Next.js Page router
I am trying to develop an app in Next.js using the page router framework. So for each component I have page.tsx under relevant folder name. For a particular component I need to have slug for routing, ...
0
votes
1
answer
51
views
Issue with app.MapWhen() in .NET Core routing for multiple Angular projects
I have a technical issue with the app.MapWhen() method in .NET Core for handling routes in my application.
Context
I have two Angular v15 projects serving as front-ends for my .NET Core 6 application.
...
1
vote
2
answers
26
views
laravel new update, omits api.php and i can't use it
since the LARAVEL omits the API.PHP, when I define the routes, Route:: API Resource('students', Student Controller::class); and I access http://localhost:8000/api/students I get "The route API/...
0
votes
1
answer
43
views
Nextjs route handler set cookie not working
I am currently experiencing an issue with setting cookies in a Next.js 14 route handler. I have confirmed through console logs that the token is correctly included in the Set-Cookie header, but the ...
0
votes
0
answers
16
views
Ionic - How to pass URL params between tabs
in Ionic I have an app-routing module, which looks like that:
import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes ...
0
votes
2
answers
49
views
Missing required parameter for update route laravel 11
I have an error
Missing required parameter for [Route: updatetransaksi] [URI: penjualan/update/{id}] [Missing parameter: id].
web code
route::get('/penjualan/edit/{id_penjualan}', [...
0
votes
1
answer
25
views
Raspberry Pi IP routing keeps adding default eth0 with metrics 100
I have a Raspberry Pi (latest version of x64 OS with desktop for Pi3 B+) with an apache2 webserver and it connects to a router via WiFi wlan0. It should be available through the Internet via a domain ...
0
votes
3
answers
42
views
Why is my router causing not to read the css?
I created a router from scratch. It's a simple router :
class Router {
private static array $routes;
public static function register($route = '/', $filename=''){
self::$routes[$route] ...
2
votes
1
answer
23
views
gin router 404 on url patterns with :id parameter
I am getting a 404 error from a URL pattern with a quite simple parameter in it.
I am using gin-gonic with golang.
Here is my main programme. I've removed all other routing to isolate the problem.
...
0
votes
0
answers
25
views
ASP.NET ignoring routes for specific .html pages
I am running my website on ASP.NET and MVC.
Here, I have set up my files as .html file and these gets routed to their respective Controller/actions accordingly.
Now for verification of my site on ...
0
votes
1
answer
25
views
Laravel my sorting filter doesn't work but i have no error or no messages
//my route
Route::get('catalogue/{categorie?}','App\Http\Controllers\CatalogueController@index')->name('catalogue');
//my function
function index($categorie = null )
{
if($categorie)
...
0
votes
0
answers
28
views
Customizing Error Responses for Non-Existent Resource IDs in API Platform
I'm using API Platform in my Symfony application and encountering an issue with the automatic Get() route when searching for a resource that doesn't exist. Currently, API Platform returns a default ...
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;
...