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 has been 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})
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi
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.
I've a plunkr to ilustrate what I want to do.
I'm trying to access a json file through a URL and in my plunkr it's actually working, but if I check the network tab in the console I can see the URL for the request is
https://run.plnkr.co/nPEfSPa0Ejn8MXjk/data%2Ffolder/test.json
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.
My code is here (also in the plunkr link)
Any help on that?
The text was updated successfully, but these errors were encountered: