Fix 'pop_next_url' function (it wasn't returning any value by mistake).