Fix link redirect bug