Angular: directly access a child route by copy + pasting a url / from outside the app

Discussão em 'Angular' iniciado por Pepper, Julho 24, 2025.

  1. Pepper

    Pepper Guest

    The url: http://webaddress.com/#/orders/new/today/3640963 shows me the 'new tab', with the order details view open.

    This is when I click to it in the app. If I copy that URL and paste it in a new browser window (so basically access the child view from outside the app). I am directed to: http://webaddress.com/#/orders/new/today - so the orderId is removed+thus the order details child view is not displayed.

    How can I make it so when I copy+paste the url to the order details view into a new browser it will open the child view for me?

    Hope that makes sense? (I haven't posted often on here often, so hopefully this is enough info+acceptable) :)

    routes.ts

    {
    path: ':tab/:date',
    component: VideosComponent,
    children: [
    {
    path: ':eek:rderId',
    component: OrderDetailsComponent,
    resolve: {video: orderDetailsResolver}
    }
    ]
    }

    Continue reading...

Compartilhe esta Página