Trim slash from currentUrl