Give correct url when using the the baseUrl option