aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2014-10-05 23:49:17 +0100
committerSimon McVittie <smcv@debian.org>2014-10-05 23:49:37 +0100
commit33f60260b233d0310ce6dd4304304a516595b906 (patch)
tree76381930a5f2301c76cf88af8e32bb176d905f22 /doc
parent3b8da667cc1514a9589190b614307c0a76af532a (diff)
downloadikiwiki-33f60260b233d0310ce6dd4304304a516595b906.tar
ikiwiki-33f60260b233d0310ce6dd4304304a516595b906.tar.gz
In html5 mode, generate a host- or protocol-relative <base> for the CGI
This increases the number of situations in which we do the right thing.
Diffstat (limited to 'doc')
-rw-r--r--doc/bugs/trouble_with_base_in_search.mdwn11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/bugs/trouble_with_base_in_search.mdwn b/doc/bugs/trouble_with_base_in_search.mdwn
index ca6a6c5cc..7c3d13387 100644
--- a/doc/bugs/trouble_with_base_in_search.mdwn
+++ b/doc/bugs/trouble_with_base_in_search.mdwn
@@ -58,3 +58,14 @@ And I'm sure someone else could come up with something better and more general.
>> I suppose what I would like would be to not need to use a `<base href>` in searching at all.
>> --[[KathrynAndersen]]
+
+>>> `<base href>` is *not* required to be absolute in HTML5, so when
+>>> `html5: 1` is used, I've changed it to be host-relative in most cases.
+>>> I think that at least partially addresses this bug report,
+>>> particularly if we [[todo/generate HTML5 by default]] like I've suggested.
+>>>
+>>> The `<base>` is there so we can avoid having to compute how to
+>>> get to (the virtual directory containing) the root of the wiki from
+>>> `ikiwiki.cgi`, which might well be somewhere odd like `/cgi-bin/`.
+>>> I think there are probably other things that it fixes or simplifies.
+>>> --[[smcv]]