$page GET variable not being remembered?

fromit

Joined: 2004-04-21
Posts: 3
Posted: Wed, 2004-04-21 15:05

I have a client using Gallery (from IE5/Mac) who has put enough images into an album to have it page through them, 9 photos per page (3x3). When she clicks along to page 2 of her gallery, all works fine. Page 3, seems to work fine. If she tries to use her back button, she can back to page 2, but then gets page 2 again, instead of page 1. I have the same problem in IE6 on WinXP.

It looks like Gallery doesn't append a $page=1 to the first view of a gallery. Hence, her browser is remembering the last page viewed. (Which in the above instance of this error was $page=2)

Anyone have any ideas what I can look at or modify? Is this fixed in 1.4.3? I'm running 1.4.3-RC2
----

Gallery URL: http://www.libbytolley.com
Gallery version: 1.4.3-RC2
Apache version: not sure
PHP version: 4.1.2 with tons of patches
Graphics Toolkit: ImageMagick
Operating system: It's hosted on FreeBSD, She is on a Mac, I'm on WinXP
Web browser/version (if applicable): IE6/Win; IE5/Mac

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-04-22 14:35

This is not fixed in 1.4.3 - any fix we added would just be a workaround, as this should work normally in the browser. We may look into adding something for 1.4.4, however.

Currently, I don't know of a workaround, although one could be created.

 
fromit

Joined: 2004-04-21
Posts: 3
Posted: Thu, 2004-04-22 16:10

How would I modify the album links for the first page? Instead of going to "http://www.libbytolley.com/gallery/view_album.php?set_albumName=Available-Paintings",
I'd like to have it go to "http://www.libbytolley.com/gallery/view_album.php?set_albumName=Available-Paintings&page=1" when someone first clicks into an album.

Any ideas? Just some simple php?

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-04-22 16:14
fromit wrote:
How would I modify the album links for the first page? Instead of going to "http://www.libbytolley.com/gallery/view_album.php?set_albumName=Available-Paintings",
I'd like to have it go to "http://www.libbytolley.com/gallery/view_album.php?set_albumName=Available-Paintings&page=1" when someone first clicks into an album.

Any ideas? Just some simple php?

This could be changed in the .htaccess file, however it might not work the way you expect, because the browser doesn't know that the URL has been changed.

 
fromit

Joined: 2004-04-21
Posts: 3
Posted: Thu, 2004-04-22 16:32
Quote:
This could be changed in the .htaccess file

Don't I start having to add a line there for each new gallery? That can get ugly...

Is there really no nice way to modify the initial link created in the php script so that $page is set when someone first clicks into an album?