WardCunningham / Smallest-Federated-Wiki

This wiki innovates by: 1. federated sharing, 2. drag refactoring and 3. data visualization.
http://wardcunningham.github.com/
GNU General Public License v2.0
1.21k stars 178 forks source link

Shorter URLs might help people refer to SFW Pages #332

Closed mkelleyharris closed 11 years ago

mkelleyharris commented 11 years ago

For authors wanting to refer to SFW pages, they currently need to include a pretty long URL. eg.

http://ward.fed.wiki.org/view/welcome-visitors/view/ward-cunningham/view/federated-wiki/view/reflections

It would be convenient to provide some syntax by which they can refer just to the page (or page title) in question

e.g. http://ward.fed.wiki.org/~reflections

WardCunningham commented 11 years ago

It is possible to refer to a single page as an html document:

http://ward.fed.wiki.org/reflections.html

This has the advantage of returning server-side rendered html with links that can be followed by simple robots that don't interpret javascript. Try:

curl http://ward.fed.wiki.org/reflections.html

@moredip and I have simplified the javascript handling of this case and may have messed it up a little. The last time I tried this with javascript enabled it seemed to paint the page twice. Much of the plugin complexity between emit and bind traces back to handling cases where the dom objects have already been emitted by the .html form.

mkelleyharris commented 11 years ago

Got it. Thanks. http://ward.fed.wiki.org/reflections.html, does get the person there. It does currently repaint twice. It might not be obvious to people how to construct such an address to which the want to refer. People are probably trained to copy the URL. Might help to provide a "Get Link" button.