]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/bugs/Titles_are_lower-cased_when_creating_a_page.mdwn
Fix broken baseurl in cgi mode when usedirs is disabled. Bug introduced in 3.20101231.
[git.ikiwiki.info.git] / doc / bugs / Titles_are_lower-cased_when_creating_a_page.mdwn
index cc53c0aeaba72b312837a21bc036129f15832eee..0594158194b23b9fcdd4be911c4ce2022b5dd704 100644 (file)
@@ -4,17 +4,19 @@ If I click on "Czars in Russia", I'd like Ikiwiki to create "Czars\_in\_Russia.m
 
 > There's a simple patch that can do this:
 
 
 > There's a simple patch that can do this:
 
-> --- a/IkiWiki.pm
-> +++ b/IkiWiki.pm
-> @@ -584,7 +584,7 @@ sub htmllink ($$$;@) { #{{{
->                      return "<span class=\"createlink\"><a href=\"".
->                              cgiurl(
->                                      do => "create",
-> -                                    page => pagetitle(lc($link), 1),
-> +                                    page => pagetitle($link, 1),
->                                      from => $lpage
->                              ).
->                              "\">?</a>$linktext</span>"
+<pre>
+-- a/IkiWiki.pm
++++ b/IkiWiki.pm
+@@ -584,7 +584,7 @@ sub htmllink ($$$;@) {
+                       return "&lt;span class=\"createlink\">&lt;a href=\"".
+                               cgiurl(
+                                       do => "create",
+-                                      page => pagetitle(lc($link), 1),
++                                      page => pagetitle($link, 1),
+                                       from => $lpage
+                               ).
+                               "\">?&lt;/a>$linktext&lt;/span>"
+</pre>
 
 > This is fine if you don't mind mixed or randomly cased filenames getting
 > created. Otoh, if the link happened to start a sentence and so had its
 
 > This is fine if you don't mind mixed or randomly cased filenames getting
 > created. Otoh, if the link happened to start a sentence and so had its