Added new helper method for generating valid link rewrite url