# You are being redirected

**URL:** <https://www.ruby-forum.com/t/you-are-being-redirected/183775>\
**Category:** Rails\
**Created:** [February 19, 2010, 9:22pm UTC](https://www.ruby-forum.com/t/you-are-being-redirected/183775 "2010-02-19T21:22:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [February 19, 2010, 9:22pm UTC](https://www.ruby-forum.com/t/you-are-being-redirected/183775/1 "2010-02-19T21:22:57Z")

</div>

I have done something to my application controller so that instead of  
the redirected page itself am now seeing this as a response:

You are being [redirected](http://www.example.com/%0Awelcome).

I do not know why this is happening or what I did to trigger this  
behaviour. The API does not give me any clues as to what is going  
on. The redirect command involved is:

redirect\_back\_or\_default(welcome\_path)

```
def redirect_back_or_default(default)
  redirect_to(session[:return_to] || default)
  session[:return_to] = nil
end

```

Up to today this has simply displayed the target page. I have no idea  
how or why the intermediate redirect page is generated. I would be  
very grateful if anyone can enlighten me on this matter.
