Skip to content

Can ui-router handle periods in url query parameter names? #2395

Closed
@SmilingJoe

Description

@SmilingJoe

Using ui-router v0.2.15. Have a route in our AngularJS (v1.4.7) application setup as follows:

.state('routeState',
{
    url: '/path/segment?param.sub.a&param.sub.b&param.sub.c',
    ...
}

As I understand the protocol, having periods inside of url query parameter names is valid. i.e.;

?first.name=Bobo&last.name=Muffy

When I setup this route in Angular, I get an error because the regex appears to be stripping out (or splitting up) the name portion into segments. So it essentially sees 'param.sub.a' as just 'param', and then errors out stating that 'param.sub.b' is a duplicate of 'param.sub.a' (because it only reads the 'param' portion of 'param.sub.b').

Unfortunately, we cannot change the parameter names as they are part of an existing protocol.

Is there a workaround to this issue? Hoping that I'm just missing something obvious already existing in the framework that can resolve this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions