You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I'm having some problems with the property stripTrailingSlashes in angular $resource.
Maybe I'm missunderstanding what this is aimed to, but I've tried to use it to get rid of '%2F' in my urls with no success.
So, in my real web application this is also happening, but the request is not being processed.
I thought that by using stripTrailingSlashes to false this could be avoided.
From the #7940 the relevant part here mentioned by @gkalpak is this: $resource('project/:id', {"id": '@id'}, {query: {method: 'GET', isArray: true},}, {encodeSlashes: false})
Activity
gkalpak commentedon Nov 17, 2016
stripTrailingSlashesis totally irrelevant (it is about stripping trailing slashes). Your issue is with encoding slashes in parameter values.I am not too keen on changing this (mainly due to its security implications). There is some discussion #7940.
In any case, this is a duplicate of #1388. Follow that threads for updates (but don't hold your breath 😃).
bieniekmateusz commentedon May 1, 2018
From the #7940 the relevant part here mentioned by @gkalpak is this:
$resource('project/:id', {"id": '@id'}, {query: {method: 'GET', isArray: true},}, {encodeSlashes: false})