CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #31302

RealURL better path

Added by Sergey Alexandrov over 1 year ago. Updated over 1 year ago.

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
+ )
+ );

Also available in: Atom PDF