Skip to content

ui-router and android 2.2 browser #531

@heinij

Description

@heinij

ui-sref links do not work in the Android 2.2 browser. The problem seems to be in
the parseStateRef function in angular-ui-router.js

function parseStateRef(ref) {
var parsed = ref.match(/^([^(]+?)\s_(((._)))?$/);
if (!parsed || parsed.length !== 4) throw new Error("Invalid state ref '" + ref + "'");
return { state: parsed[1], paramExpr: parsed[3] || null };
}

parsed always returns null

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