Skip to content

feat(urlMatcherFactory): add type "urlEncode" param #2834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

feat(urlMatcherFactory): add type "urlEncode" param #2834

wants to merge 1 commit into from

Conversation

clementprevot
Copy link

@clementprevot clementprevot commented Jun 24, 2016

This parameter allow to ignore the URL encoding of the URL parameters
when generating an href.
The use case for this is to allow to have a state param that contains
"/" that should be restored as real "/" in the generated URL path.

Add a "urlEncode" type parameter
This parameter allow to ignore the URL encoding of the URL parameters
when generating an href.
The use case for this is to allow to have a state param that contains
"/" that should be restored as real "/" in the generated URL path.
@clementprevot clementprevot changed the title feat urlMatcherFactory: add type "urlEncode" param feat(urlMatcherFactory): add type "urlEncode" param Jun 24, 2016
@cvn
Copy link
Contributor

cvn commented Sep 15, 2016

I'm not on the ui-router team, but if anyone else is looking for this feature, it's available in 1.0 with "raw" types. e.g.

.config(function ($urlMatcherFactoryProvider, $stateProvider) {
    $urlMatcherFactoryProvider.type('myType', {
        raw: true // do not encode
    });
    $stateProvider.state('myState', {
        url: '/{foo:myType}'
    });
})

See #2218

@christopherthielen
Copy link
Contributor

christopherthielen commented Sep 15, 2016

If somebody wants to backport the raw: true api from master, I'll merge it to legacy

@felixfbecker
Copy link

@clementprevot are you planning to backport raw to 0.x?

@clementprevot
Copy link
Author

Hum, no I'm not, sorry 😉

@stale
Copy link

stale bot commented Jan 24, 2020

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues
may be reopened.

Thank you for your contributions.

@stale stale bot added the stale label Jan 24, 2020
@stale stale bot closed this Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants