Skip to content

Do not Ignore options.basePath when building urls #30

@BlairAllegroTech

Description

@BlairAllegroTech

When returned jsonApi objects have relationship links the js-data basePath was being intentionally ignored.

This causes problems when your API returns relatives paths and is exposed on a different basePath than where your javascript was served from.

Base path is now always prefixed to all Urls if configured,
Unless a url begins with base path already, in which case we do not prefix it again.
This is so that an api can still return fully qualified Urls

Related to #25

Metadata

Metadata

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions