Added code to set idtype originalurl to hide