Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Conflict between query parameter name and GET /{id} #712

Open
et1421 opened this issue Nov 26, 2018 · 0 comments
Open

Conflict between query parameter name and GET /{id} #712

et1421 opened this issue Nov 26, 2018 · 0 comments

Comments

@et1421
Copy link

et1421 commented Nov 26, 2018

Steps to reproduce

On Chrome
Version 1.5.1

When using the function.query() with a parameter named the same as the scalar URL variable (this.$resource('someItem{/id}');)
the wrong URL is called.

What is Expected?

When calling the query function with :
theResource.query({id: "3"});
The URL should be called without the id in the path and with the query parameters.

The URL : /fakeapiurl/?id=3

What is actually happening?

The URL for the scalar is called instead, therefore returning the wrong values.

The URL: /fakeapiurl/3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant