OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
BugTrack/2213 Improve Canonical URL and reload links
[pukiwiki/pukiwiki.git]
/
lib
/
func.php
diff --git
a/lib/func.php
b/lib/func.php
index
ba6ad72
..
f2f3270
100644
(file)
--- a/
lib/func.php
+++ b/
lib/func.php
@@
-733,6
+733,10
@@
function get_base_uri($uri_type = PKWK_URI_RELATIVE)
*/
function get_page_uri($page, $uri_type = PKWK_URI_RELATIVE)
{
+ global $defaultpage;
+ if ($page === $defaultpage) {
+ return get_base_uri($uri_type);
+ }
return get_base_uri($uri_type) . '?' . pagename_urlencode($page);
}