Skip to content

Optional parameters are dropped in named nested routes #2110

Open
@wrrrn

Description

@wrrrn

Version

3.0.1

Reproduction link

https://codepen.io/wrrrn/pen/GxqmOb
http://jsfiddle.net/7a31maev/1/

Steps to reproduce

I've linked to what the current router code is. The issue is simple, so I hope I'm missing something obvious.

What is expected?

When the :paramOptional is set, and child route is pushed to, the path will look as such -
'/search/paramOne/paramOptional/paramTwo/show-modal'

What is actually happening?

When navigated to, the child removes the paramOptional. The resulting url is -
'/search/paramOne/paramTwo/show-modal'

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionhas PRhas workaroundneeds RFCThis feature request needs to go through the RFC process to gather more information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions