Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

361
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!