[Solved] how deep can a url be in angular? [closed]

You have to repeat the complete path to the route you want to add in each module (meaning from root on). To solve your problem you would have to change your settings.routing.module.ts to import { NgModule } from ‘@angular/core’; import { Routes, RouterModule } from ‘@angular/router’; import { TeamsComponent } from ‘../teams.component’; import { SettingsComponent … Read more

[Solved] Symfony sub domain routing

This solution will intercept the REQUEST_URI and add the subdomain as a root folder if not already used. Meaning app.example.com and app.example.com/app will both access the same page. if(substr($_SERVER[‘HTTP_HOST’], 0, strlen(‘app.’)) === ‘app.’ && substr($_SERVER[‘REQUEST_URI’], 0, strlen(‘/app’)) !== ‘/app’) { $_SERVER[‘REQUEST_URI’] = ‘/app’.$_SERVER[‘REQUEST_URI’]; } The benefit of this is being able to put all your … Read more