I'm trying to match 1 paramater that can have 2 kinds of values: 'current' or a number with at least 10 cyphers.
I've tried:
url: '/history/{code:^current$|^[0-9]{10,}$}'
When I use this regexp I get my app to go to history/current, but when I reload the page it goes back to the default.
Can anyone help by saying what am I doing wrong or how could I debug that?