I was using the below method to access api route. It is working to some extent but the href is not working and it is giving both slashes(\'/\' & \'\') in the link. And t