Closed (fixed)
Project:
Facet API Pretty Paths
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Feb 2012 at 23:47 UTC
Updated:
6 Mar 2012 at 14:30 UTC
Since much of the purpose of providing pretty facet paths is for SEO, the urls should be canonicalized as much as possible.
This could be achieved by sorting the active segments within postProcessItem before the segments are looped over to construct the path:
// Construct facet path after gathering all active segments.
// @todo: sort to avoid multiple urls with duplicate content?
foreach ($segments as $key => $segment) {
$item['#path'] .= '/' . $segment['alias'] . '/' . $segment['value'];
}
Comments
Comment #1
vrc3 commentedComment #2
dasjoimplemented, see