summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://smcv.pseudorandom.co.uk/ <http://smcv.pseudorandom.co.uk/@web>2008-09-22 18:28:39 -0400
committerJoey Hess <joey@kitenet.net>2008-09-22 18:28:39 -0400
commitc4fde75f461b5dcb9b4b734f96edde98e81c7966 (patch)
tree2a7b607d43fe0d0c0b4bd8b06266402aa9a643b2
parent2587137775ab7c0582768e9006b65187d09cb7c4 (diff)
Reference patches to beautify redirection URLs
-rw-r--r--doc/bugs/index.html_is_made_visible_by_various_actions.mdwn12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/bugs/index.html_is_made_visible_by_various_actions.mdwn b/doc/bugs/index.html_is_made_visible_by_various_actions.mdwn
new file mode 100644
index 000000000..b0740649c
--- /dev/null
+++ b/doc/bugs/index.html_is_made_visible_by_various_actions.mdwn
@@ -0,0 +1,12 @@
+When you do various CGI actions, "index.html" is visible in the redirection URL. It's desirable that this is avoided, so there is only one visible URL for each page (search engines don't think that /foo/index.html is equivalent to /foo/, since this is not necessarily true for all servers and configurations).
+
+The beautify branch in my repository contains [[patches|patch]] for all the cases I found by grepping for "htmlpage", which are:
+
+* editpage redirects you to the page under various circumstances, most visibly after you finish editing it
+* poll redirects you to the poll after voting
+* recentchanges redirects you to the relevant page when you click a link
+* remove redirects you to the parent of the removed page
+
+<http://git.debian.org/?p=users/smcv/ikiwiki.git;a=shortlog;h=refs/heads/beautify>
+
+I think the coding standard in future should be: use htmlpage when you want a local file, or urlto if you want a URL.