fixing friendly url method to account for https