Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 840297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:36:04+00:00 2026-05-15T05:36:04+00:00

In certain error conditions I would like to redirect to the Home controller but

  • 0

In certain error conditions I would like to redirect to the Home controller but I want to make sure that I don’t get into a “redirect” loop (with an exception being generated each time resulting in yet another redirect). What is the best way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:36:04+00:00Added an answer on May 15, 2026 at 5:36 am

    It sounds like you’re asking for a solution to the halting problem (i.e. “I want to redirect to self on exceptions but not if subsequent call will always throw an exception”).

    Barring implementing research in this field (while the halting problem is impossible to solve, you can eliminate quite a few cases with certain analysis) I would say your best bet is to do what firefox is doing anyway – keep a count of how many self-redirects have occurred and stop redirecting if it exceeds a certain count.

    A way to do this might be to include a parameter that is incremented with each subsequent “exception throw redirect” and to compare against this parameter when deciding whether to redirect or not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make a jira plugin that works like a workflow validator, but
Running into a problem where on certain servers we get an error that the
I want to allow duplicate names on certain conditions(that I can check for myself).
I would like to filter certain fields in my database which are Null, 0,
In Jet, I want to test if certain conditions return any results. I want
I would like to construct a search query that groups the records by their
I want to filter my DataTable based on certain filtering conditions. Here's my code:
On certain error cases ATL invokes AtlThrow() which is implemented as ATL::AtlThrowImpl() which in
I'm not certain where the error is resulting (from silverlight, from wcf, something else...)
Under certain circumstances, I wish to display an error message to the user if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.