removing "/public" from the url.