Fixed bug where subdirectory was being ignored on server url