I remember there's a redirect function in jQuery.
It was like:
$(location).href('http://address.com')
But what was it exactly? I couldn't remember and can't find it using Google Search.
Use:
window.location.replace(...)
See this Stack Overflow question for more information:
How do I redirect to another webpage?
Or perhaps it was this you remember:
var url = "http://stackoverflow.com";
location.href = url;
I think you are looking for:
window.location = 'http://someUrl.com';
It's not jQuery; it's pure JavaScript.
Ideally, you want to be using window.location.replace(...).
See this answer here for a full explanation: How do I redirect to another webpage?
$(location).attr('href','http://address.com');