Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Add function in $location which creates a link href given parameters  #9182

Open
@sodacrackers

Description

@sodacrackers

I have a simple search app with URLs like: /search/?q=fish&p=2&l=30&cat=2,3,4. While I'm able to redirect using $location.path('/search/').search({q: 'fish', p:1 }); There's no output for links like above or, creating app links from input like {q: 'fish', p:1 }.

Please provide a getter like $location.createUrl([string, object]) so that I can create links in themeing, without knowing the current directory, if it's html5 or, having to add another function that makes URLs from an object.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close