1 [[!meta author="""joey"""]]
3 [[!meta authorurl="""http://ikiwiki.info/ikiwiki.cgi?page=users%2Fjoey&do=goto"""]]
5 [[!meta title="""change to todo/want_to_avoid_ikiwiki_using_http_or_https_in_urls_to_allow_serving_both on ikiwiki"""]]
7 [[!meta permalink="http://ikiwiki.info/recentchanges/#change-5954915a4fe8a889b8217cac99fae53cbe7f1e97"]]
9 <div id="change-5954915a4fe8a889b8217cac99fae53cbe7f1e97" class="metadata">
10 <span class="desc"><br />Changed pages:</span>
11 <span class="pagelinks">
13 <a href="http://git.ikiwiki.info/?p=ikiwiki;a=blobdiff;f=doc/todo/want_to_avoid_ikiwiki_using_http_or_https_in_urls_to_allow_serving_both.mdwn;h=f8ec4c420469f47168ced54b93dbe75fa39dfdab;hp=80925b458287767620d8862f782e77b1bd7dda63;hb=5954915a4fe8a889b8217cac99fae53cbe7f1e97;hpb=d916cd2f71f1c22dad947d7b2134edbbb15e7b8e" title="diff" rel="nofollow">[[diff|wikiicons/diff.png]]</a><a href="http://ikiwiki.info/ikiwiki.cgi?page=todo%2Fwant_to_avoid_ikiwiki_using_http_or_https_in_urls_to_allow_serving_both&do=goto" rel="nofollow">todo/want to avoid ikiwiki using http or https in urls to allow serving both</a>
17 <span class="desc"><br />Changed by:</span>
18 <span class="committer">
20 <a href="http://ikiwiki.info/ikiwiki.cgi?page=users%2Fjoey&do=goto" rel="nofollow">joey</a>
23 <span class="desc"><br />Commit type:</span>
24 <span class="committype">git</span>
25 <span class="desc"><br />Date:</span>
26 <span class="changedate"><span class="relativedate" title="Mon, 22 Nov 2010 20:04:11 +0000">20:04:11 11/22/10</span></span>
27 <span class="desc"><br /></span>
31 <a href="http://ikiwiki.info/ikiwiki.cgi?rev=5954915a4fe8a889b8217cac99fae53cbe7f1e97&do=revert" title="revert" rel="nofollow">[[revert|wikiicons/revert.png]]</a>
34 <div class="changelog">
44 diff --git a/doc/todo/want_to_avoid_ikiwiki_using_http_or_https_in_urls_to_allow_serving_both.mdwn b/doc/todo/want_to_avoid_ikiwiki_using_http_or_https_in_urls_to_allow_serving_both.mdwn
45 index 80925b4..f8ec4c4 100644
46 --- a/doc/todo/want_to_avoid_ikiwiki_using_http_or_https_in_urls_to_allow_serving_both.mdwn
47 +++ b/doc/todo/want_to_avoid_ikiwiki_using_http_or_https_in_urls_to_allow_serving_both.mdwn
48 @@ -201,6 +201,10 @@ New API added by this branch:
50 >> I personally think breaking the docwiki is enough to block that.
52 + >>> Well, the docwiki doesn't have an url configured at all, so I assumed
53 + >>> it would need to fall back to current behavior in that case. I had
54 + >>> not thought about browsing wiki's html files though, good point.
56 >> How about this?
58 >> * `urlto($link, $page)` with `$page` defined: relative
59 @@ -210,12 +214,24 @@ New API added by this branch:
60 >> normally undef): absolute, starts with `http[s]://`
62 >> --[[smcv]]
64 + >>> That makes a great deal of sense, bravo for actually removing
65 + >>> parameters in the common case while maintaining backwards
66 + >>> compatability!
68 + >>> It does highlight that it would be better to have a
69 + >>> `absolute_urlto($link)` (or maybe `absolute(urlto($link))` )
70 + >>> rather than the 3 parameter form. --[[Joey]]
72 * `IkiWiki::baseurl` has a new second argument which works like the
73 third argument of `urlto`
75 > I assume you have no objection to this --[[smcv]]
77 + >> It's so little used that I don't really care if it's a bit ugly.
78 + >> (But I assume changes to `urlto` will follow through here anyway.)
79 + >> --[[Joey]]
81 * `IkiWiki::cgiurl` uses `$local_cgiurl` if passed `local_cgiurl => 1`
83 > Possibly changed to making this always be local unless `cgiurl => $x`
84 @@ -225,6 +241,8 @@ New API added by this branch:
85 except `cgiurl` and/or `local_cgiurl`
87 > I assume you have no objection to this --[[smcv]]
89 + >> Nod, although I don't know of a use case. --[[Joey]]
93 @@ -243,6 +261,10 @@ Bugs:
94 >> would you accept a patch that makes `cgiurl` default to a local
95 >> (starts-with-`/`) result? If you would, that'd reduce the diff. --[[smcv]]
97 + >>> Yes, I absolutely think it should default to local. (Note that
98 + >>> if `absolute()` were implemented as suggested above, it could also
99 + >>> be used with cgiurl if necessary.) --[[Joey]]
101 * It occurs to me that `IkiWiki::cgiurl` could probably benefit from being
102 exported? Perhaps also `IkiWiki::baseurl`?
108 <!-- 5954915a4fe8a889b8217cac99fae53cbe7f1e97 -->