WardCunningham/Smallest-Federated-Wiki — Issue #48: missing page handling should be client responsibility
Author: WardCunningham
Created: 2011-10-15 19:24:54+00:00
State: open

When we follow a link to a non-existant page (a red-link in wikipedia terminology) the Sinatra version of the server makes a new page on the spot. This should really be handled in the client code in response to a 404. This has several advantages:

* This is the expected server behavior when serving static pages
* The client can make a better page because it knows more, such as the non-slug version of the title.
* The client can defer persisting the page until it is edited. (The server had to persist the page so it could remember generated IDs).
* The UI experience might be improved by doing something other than generating an empty page.
* The client could mark the link as non-existant (red-link), something we haven't asked the server to do when serving pages.