java script if ho to another route code example Example: jquery redirect to url $(location).attr('href', 'https://google.com');