Code Monkey home page Code Monkey logo

Comments (13)

mgonto avatar mgonto commented on July 19, 2024

Hey,

I cannot reproduce this. Can someone reproduce this? I get one / alone when setting the suffix.

from restangular.

cellofellow avatar cellofellow commented on July 19, 2024

It's even worse on Firefox on my system and my client's system. With the requestSuffix set as described in the OP, it requests /api/myresource/\/.

from restangular.

mgonto avatar mgonto commented on July 19, 2024

Try in Firefox to just put /  

What happens then?? Without the escape?


Mobile mail. Excuse brevity and typos.

On Wed, May 15, 2013 at 5:54 PM, Joshua Gardner [email protected]
wrote:

It's even worse on Firefox on my system. With the requestSuffix set as described in the OP, it requests /api/myresource/\/.

Reply to this email directly or view it on GitHub:
#54 (comment)

from restangular.

mgonto avatar mgonto commented on July 19, 2024

Could you reproduce this on firefox when just setting /?

from restangular.

cellofellow avatar cellofellow commented on July 19, 2024

I'm sorry I haven't had the chance to reproduce this in Firefox. I've had to modify my backend to simply not care about trailing slashes, but I'm going to have to fix this at some point. I'll get back to you soon.

from restangular.

mgonto avatar mgonto commented on July 19, 2024

Sure, makes sense. Also, if someone else can reproduce this bug, it'd help me fix this :).

from restangular.

mgonto avatar mgonto commented on July 19, 2024

Any update on this? have you tried Angular's version released yesterday?

from restangular.

mgonto avatar mgonto commented on July 19, 2024

Closing this one.

If this still happens to you, please reopen it.

from restangular.

osama-lionheart avatar osama-lionheart commented on July 19, 2024

@mgonto I have created this jsfiddle to show how Restangular is adding an unnecessary slash at the end which breaks APIs that don't handle that.

If you open chrome dev tools, you'll find this request is being made:
http://fiddle.jshell.net/users/.json
instead of:
http://fiddle.jshell.net/users.json

from restangular.

mgonto avatar mgonto commented on July 19, 2024

Awesome!!

Thanks for the jsfiddle.

I'll get on it :)

from restangular.

mgonto avatar mgonto commented on July 19, 2024

Thanks to the JSFiddle I reproduced it :).

Check out the JSFiddle it now returns the correct URL.

from restangular.

osama-lionheart avatar osama-lionheart commented on July 19, 2024

Great! thanks for the fix, and for sharing the library with us 👍

from restangular.

cellofellow avatar cellofellow commented on July 19, 2024

Thanks for this!

from restangular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.