CMS MADE SIMPLE FORGE

Gallery

 

[#6058] Sub Gallery links generated incorrectly

avatar
Created By: Marko Onninen (onninen)
Date Submitted: Tue Feb 01 16:21:25 -0500 2011

Assigned To:
Version: 1.4.3
CMSMS Version: None
Severity: Minor
Resolution: Invalid
State: Closed
Summary:
Sub Gallery links generated incorrectly
Detailed Description:
CMSMS 1.9.2
Gallery 1.4.3

When Pretty Urls are enabled using $config['url_rewriting'] = 'mod_rewrite';,
generated sub gallery links contain number at the end. It seems that number is
leftover from the original url what you can see if you set Pretty Urls off.

For example:
URL to the sub gallery when Pretty Urls are off:
http://www.ikivihrea.com/index.php?mact=Gallery,m6e73e,default,1&m6e73edir=Asetelmat&m6e73ereturnid=64&page=64

URL to the sub gallery when Pretty Urls are on:
http://www.ikivihrea.com/kuvagalleria/Asetelmat/64/

So it seems that something goes wrong when sub gallery link is generated using
mod_rewrite. I guess that number 64 here is leftover from original url.

See also forum article: 
http://forum.cmsmadesimple.org/viewtopic.php?f=7&t=50770&p=242063&hilit=gallery+link#p242063
which has the same symptom.
 


History

Comments
avatar
Date: 2011-02-02 07:58
Posted By: Jos (josvd)

This is not a bug, This is the way cmsms creates the pretty url. Gallery uses a
core function for that.
      
avatar
Date: 2011-02-02 09:19
Posted By: Marko Onninen (onninen)

So by design the pretty url won't work for sub galleries and we are not able to
hide content id page number from the url pointing to the sub gallery?
      
Updates

Updated: 2011-02-02 07:58
resolution_id: => 9
state: Open => Closed