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

Host does not resolve when the start of the path is the same string as the namespace. #430

Open
andrew-paterson opened this issue Feb 26, 2019 · 0 comments

Comments

@andrew-paterson
Copy link

andrew-paterson commented Feb 26, 2019

I'm using Ember 3.1.2, and ember-ajax 3.0.0.

Assuming I'm serving my Ember app at localhost:4200 and have the namespace and host configured as follows:

// services/ajax
namespace: '/foo',
host: `https://test.com`,

If I then call

this.get('ajax').request('/foobar/posts');

the host and namespace are not added to the request URL which becomes

localhost:4200/foobar/posts

where it should be

https://test.com/foo/foobar/posts.
@andrew-paterson andrew-paterson changed the title Host does not resolve when the start of the path is the sae string as the namespace. Host does not resolve when the start of the path is the same string as the namespace. Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant