Cater for subfolder installs in request

Looking at this locally it wasn't working and remembered I was in a subfolder so needed to add a reference to the subfolder in the request url.