If I understood it correctly, it's not just refreshing the page. Your code on #pendingChallengesPage
might contain code that redirects again back to it's previous. Please mention it, Is the URL is persist after reload? You've clearly stated that page content is not changing. What about the URL?
1) If you are redirecting inside a function twice, return;
the function after it's first redirection.
2) Use event.preventDefault();
if necessary.
Reply with some more details. if you could, throw few script here.