Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Should you redirect on a 404? #2

Open
seungkoh opened this issue Nov 12, 2011 · 0 comments
Open

Should you redirect on a 404? #2

seungkoh opened this issue Nov 12, 2011 · 0 comments
Assignees

Comments

@seungkoh
Copy link

This question relates to the last test in the rspec file. Is it proper to explicitly redirect to a url such as http://www.mysite.com/404.html if the page the user requested does not exist? If so, how do you coordinate this with the Sinatra not_found method? Should I stick the redirect in there? The behavior I'm seeing is that not_found will render the template with name "404," but it doesn't redirect you to a page named "404."

@ghost ghost assigned bfaloona Dec 5, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants