Fixed non-working redirect in download link clicked event