Fixed a bug to append the context path and redirect to absolute path
instead of relative path which gives issue when a page is within a
folder.