Fixing hard coded http while making linkReplace