fixed extra slash issue while adding portal context if its non root