Plogger Support Forum - Breadcrumb back navigation to the right page of the gallery Thu, 28 Mar 2024 12:55:02 +0000 http://www.plogger.org/forum/ Lussumo Vanilla 1.1.10 Breadcrumb back navigation to the right page of the gallery http://www.plogger.org/forum/comments.php?DiscussionID=2022&Focus=8016#Comment_8016 http://www.plogger.org/forum/comments.php?DiscussionID=2022&Focus=8016#Comment_8016 Sun, 06 Jul 2008 13:36:49 +0000 senyahnoj
The following patch fixes this if anyone else is interested (n.b. this only works for the non mod_rewrite configuration option).

Index: plog-functions.php
===================================================================
--- plog-functions.php (revision 34)
+++ plog-functions.php (revision 35)
@@ -1074,6 +1074,10 @@
return $config['baseurl'].'?level=collection&id='.$id;
} else if ($level == "album") {
$rv = $config['baseurl'].'?level=album&id='.$id;
+ if(isset($_GET['plog_page']))
+ {
+ $rv .= '&plog_page=' . $_GET['plog_page'];
+ }
if (sizeof($arg) > 0) {
foreach($arg as $akey => $aval) {
// mod_rewrite url-s need /sorted in them, the old style ones do not.
@@ -1085,6 +1089,10 @@
}
} else if ($level == "picture") {
$rv = $config['baseurl'].'?level=picture&id='.$id;
+ if(isset($_GET['plog_page']))
+ {
+ $rv .= '&plog_page=' . $_GET['plog_page'];
+ }
}
}
]]>
Breadcrumb back navigation to the right page of the gallery http://www.plogger.org/forum/comments.php?DiscussionID=2022&Focus=8036#Comment_8036 http://www.plogger.org/forum/comments.php?DiscussionID=2022&Focus=8036#Comment_8036 Tue, 08 Jul 2008 05:06:11 +0000 Kees de Bruin