I am trying add code for redirect $this->resultRedirect->setPath('checkout/index/index#payment');
but some reason its take slash at the end of url so url become www.demo.com/checkout/index/index#payment/
which give me 404. if I pass www.demo.com/checkout/index/index#payment
it work.
in-short I am getting addition slash at the end after parameter.