support link and redirect based on parameter