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