These are the routes I've set up:
import {RouteDefinition} from '@angular/router-deprecated';
import {HomeComponent} from './home/home.component';
import {TodolistComponent} from './todolist/todolist.component';
import {RegistrationComponent} from './registration/registration.component';
export var APP_ROUTES: RouteDefinition[] = [
{ path: '/home', name: 'Home', component: HomeComponent },
{ path: '/registration', name: 'Registration', component: RegistrationComponent },
{ path: '/todolist', name: 'Todolist', component: TodolistComponent },
{ path: '/mac/:id', name: 'Mac', component: HomeComponent, useAsDefault: true}
];
I need to access the route mac/:id directly to retrieve the device's mac number.
While it works fine on localhost, attempting to run it on the server using this link: only results in a 404 error without displaying my application or any specific error message.
How can I pass the parameter to my default route?
UPDATE: The issue persists regardless of which route I select. For example, the register route doesn't work either, even though everything functions correctly on localhost. This problem occurs on multiple servers.