Feature #31302
RealURL better path
| Status: | New | Start date: | 2011-10-26 | |
|---|---|---|---|---|
| Priority: | Could have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Votes: | 1 (View) |
Description
Something like this will shorten RealURL paths:
@ -115,9 +115,13 @
$combinedURL = $URLdoneByRealUrl;
if(count($urlDoneArray)) {
- $combinedURL .= implode('/',$urlDoneArray);
+ $combinedURL .= str_replace(
+ array('ItemList/submitFilter','Gallery/index','Gallery/list','ItemList/list'),
+ array('albumImages','galleryAlbums','Galleries','page'),
+ implode('/',$urlDoneArray)
+ );
}
+
$ref->encodeSpURL_cHashCache($combinedURL, $unencodedValues);
if (count($unencodedValues)) {
@ -147,8 +151,16 @
$cHash = $ref->decodeSpURL_cHashCache($urlTodo);
list($path, $additionalParams) = explode('?', $urlTodo);
$pathParts = explode(
+ '/',
+ str_replace(
+ array('albumImages','galleryAlbums','Galleries','page'),
+ array('ItemList/submitFilter','Gallery/index','Gallery/list','ItemList/list'),
+ $path
+ )
+ );