Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getRestangularUrl getRequestedUrl ignore suffix #1316

Open
rerobins opened this issue Feb 10, 2016 · 1 comment
Open

getRestangularUrl getRequestedUrl ignore suffix #1316

rerobins opened this issue Feb 10, 2016 · 1 comment

Comments

@rerobins
Copy link

Setting a request suffix does not modify the values that are returned by getRestangularUrl() or getRequestedUrl().

Configuration

.config(['RestangularProvider', function(RestangularProvider) {
        RestangularProvider.setBaseUrl('http://localhost:8000/');
        RestangularProvider.setRequestSuffix('/');
    }])

Execution:

Restangular.one('workspace', 1).get().then(function(object) {
   object.getRestangularUrl();  
   // returns: http://localhost:8000/workspace/1  
   // should be: http://localhost:8000/workspace/1/
});
@daviesgeek
Copy link
Collaborator

Can you provide a working example on Plunker please?

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

No branches or pull requests

2 participants