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

Should you redirect on a 404? #2

@seungkoh

Description

@seungkoh

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."

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions