8p / EightPointsGuzzleBundle

⛽️ Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony
MIT License
440 stars 71 forks source link

Setting a path in the base_url doesn't stick. #110

Closed Coffee2CodeNL closed 7 years ago

Coffee2CodeNL commented 7 years ago

Problem
If I set base_url with a path (e.g. domain.tld/api/v1) and then use the client to fetch the /projects endpoint, it tries to fetch it from domain.tld/projects instead of domain.tld/api/v1/projects

Guzzle Info
Using version ^5.3 of 8p/GuzzleBundle.

Coffee2CodeNL commented 7 years ago

Closing, docs aren't really clear that a leading slash overwrites any path specified in the base url.