]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Temporarily revert one part of the multiple url support in the last release. Non...
authorJoey Hess <joey@kitenet.net>
Wed, 5 Jan 2011 19:01:31 +0000 (15:01 -0400)
committerJoey Hess <joey@kitenet.net>
Wed, 5 Jan 2011 19:01:31 +0000 (15:01 -0400)
IkiWiki.pm
debian/changelog
doc/todo/want_to_avoid_ikiwiki_using_http_or_https_in_urls_to_allow_serving_both.mdwn

index 1102fa52a967b94f8595c56415af10bcdca9ef24..3a4cfd5e730cd7fc04a14a94d8a3fbd71f053fc5 100644 (file)
@@ -1931,7 +1931,7 @@ sub misctemplate ($$;@) {
                title => $title,
                wikiname => $config{wikiname},
                content => $content,
-               baseurl => baseurl(),
+               baseurl => $config{url},
                html5 => $config{html5},
                %params,
        );
index f9468f1c7d65314bda60e032d695d776fd2a6970..33e5e1fa11817fb5972f8371f368ee5c7048e875 100644 (file)
@@ -6,6 +6,9 @@ ikiwiki (3.20101232) UNRELEASED; urgency=low
   * Fix base url when previewing. Was broken by base changes in last release.
   * Fix redirect to use a full url. Was broken (in theory) by baseurl
     changes in last release.
+  * Temporarily revert one part of the multiple url support in the last
+    release. Non-edit pages are now back to having `<base>` set to
+    the site's main url.
 
  -- Joey Hess <joeyh@debian.org>  Tue, 04 Jan 2011 16:00:55 -0400
 
index 55ff67d0c51ed57681c656b0715db1776b0ebbb2..260aecdbd60a12a8f8ff4cfe3bd000d865d938a9 100644 (file)
@@ -4,17 +4,16 @@
 
 * CGI pages, with the exception of edit pages, set `<base>` to
   `$config{url}`
-* When doing a Logout or Cancel, or when saving an edited page,
-  the user is returned to something derived from `$config{url}`.
-* RecentChanges page may link to things derived from `$config{url}`.
 
-All of the above are because I had to revert `baseurl(undef)` to always
-returning an absolute url, since relative urls caused breakage as seen in
-[[preview_base_url_should_be_absolute]]. --[[Joey]] 
+I had to revert using `baseurl(undef)` for that, because it needs
+to be a full url.
 
 Ideally, baseurl would return an absolute url derived from the url
 being used to access the cgi, but that needs access to the CGI object,
-which it does not have. --[[Joey]] 
+which it does not currently have. Similarly, `misctemplate`
+does not have access to the CGI object, so it cannot use it to
+generate a better baseurl. Not sure yet what to do; may have to thread
+a cgi parameter through all the calls to misctemplate. --[[Joey]]
 
 ## old attempt