fix prettify url
Fix issue when we want to redirect to schemed URL