Here are my routes defined:
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}
];
Now I want to call route mac/:id directly in order to get mac number from the device.
On localhost it runs ok, but on the server when I try to run:
http://register.ampio.com.pl/mac/123
It does not show either error or my application, only 404.
How can I pass the parameter to my default route?
EDIT: It does not matter which route do I choose. I.E. register does not work, even though on the localhost everything is ok. I tried it on the two different servers.