removing ending slash from site url on the client