Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

3.1.0 --> 3.1.1 changes namespace behavior with leading slashes #383

@mydea

Description

@mydea

After upgrading from 3.1.0 to 3.1.1, our app broke. I guess it is due to this commit:

3a25d71

Basically, our namespace was api/v2, and our rootUrl is /app, and our host is https://our-server.com.
Meaning our app runs on https://our-server.com/app/, and the ajax service is configured like this:

// app/services/ajax.js
import AjaxService from 'ember-ajax/services/ajax';

export default AjaxService.extend({
  namespace: 'api/v2',
  host: 'https://our-server.com'
});

Previously, it would correctly build the urls like this: https://our-server.com/api/v2/xxxx. After the upgrade, it would suddenly be https://our-server.com/app/api/v2/xxx.

We could fix it by changing the namespace to /api/v2, but I guess this kind of breaking change should not happen in a patch-level release.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions