Understood the issue. As the returned post URL started with a forward slash, the site root was called up, instead of the present URL