Skip to content

Target same route with different parameters in ui-sref #580

Closed
@ghost

Description

I'm in my search route, where I have 3 different parameters setup, and I want to toggle between them. The problem is that if I'm on a state with ?agency=6, and in ui-sref I put ?advertiser=6, it appends the agency on it automatically. Is this by design or a bug? If by design, is their a way to override it? I saw that setting null works, but that's a bit cumbersome as I allow up to 10 parameters in this state.

<div><a ui-sref="search({ agencies: deal.agency._id })"><i class="fa fa-youtube-play"></i>{{ deal.agency.name }}</a></div>
<div><a ui-sref="search({ advertisers: deal.advertiser._id })"><i class="fa fa-money"></i>{{ deal.advertiser.name }}</a></div>
<div><a ui-sref="search({ externalusers: deal.salesPlanner._id })"><i class="fa fa-group"></i>{{ deal.salesPlanner.name }}</a></div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions