Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

363
Vistas
C# Redirect to about:blank

While using RedirectResult Redirect(string url) with "about:blank" it returns error that side cannot be reached and it loops infinitely inside my controller method

Can you please advice how could I handle about:blank case?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

The redirect is basically done by using two declares on Headers - the url and the status.

So the very basic of redirect is this two lines of code (for the "about:blank") where for security reasons is forbitten and response with ERR_UNSAFE_REDIRECT

Response.StatusCode = 301;
Response.RedirectLocation = "about:blank";

So this can not be done using redirect and header declarations.

There is a way around - use JavaScript and run this line

<script>window.location.href = 'about:blank';</script>

Alternative consider to create an empty page and redirect to this empty existing page - and avoid the about:blank

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda