Handle redirect with fragment parameter