hi
have a look on zenpage theme.
in gallery.php, album.php and image.php, breadcrumb uses `printGalleryIndexURL()`, and in sidebar.php, the link to the gallery uses `printCustomPageURL()`.
if you have a gallery with more than one page, and your are on an album of the 2nd page, the gallery link in the breadcrumb gives you this url `page/gallery/2/` and the gallery link in the sidebar gives you `page/gallery/`.
for me it's OK because in the breadcrumb, I want to know on witch page I am (and go back to the right gallery page) and in sidebar, I don't want pagination (I only want to point to the root of the gallery).
BUT, the `printGalleryIndexURL()` link can't be rewrited contrary to `printGalleryIndexURL()`.