Skip to content

Relative selfLinks + baseUrl #665

@kevinrenskers

Description

@kevinrenskers

If my self link looks like this:

"self": {
    "link": "/conversations/1"
}, 

And I have the following configuration:

RestangularProvider.setBaseUrl('http://myapi.com/api');
RestangularProvider.setRestangularFields({selfLink: 'self.link'});

Then I would expect the element to have the link http://myapi.com/api/conversations/1. Sadly the url is instead http://localhost:8080/conversations/1 when running on localhost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions