Skip to content

Add a helper with more concise interface to skip sticky query params #1

@arthurmde

Description

@arthurmde

Currently, the best way to skip the default behavior of sticky query params is by using the merge-query-params as follows:

{{link-to "Link!" "parent.child"
	(merge-query-params
		(reset-query-params route="another.route")
		(create-query-params childQp="only-child-qp-is-set")
	)
}}

I think it would be amazing to have a cleaner, more concise way to do the same task. I suggest the creation of a new helper with the following interface:

{{link-to "Link!" "another.route"
	(new-helper-query-params route="another.route" param1="new-value-to-param1")
}}

Such helper would exist with the single purpose of supporting links without sticky query params.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions