Closed (won't fix)
Project:
Fusion
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 May 2011 at 12:08 UTC
Updated:
15 Apr 2014 at 19:08 UTC
Jump to comment: Most recent
Hi, I was looking into the $body_id and I thought it would be better to have it return the internal path instead of the path alias... The path alias can be very long and could also change when a user changes it, whereas the internal path woud stay the same. This was easely done by changing:
$vars['body_id'] = 'pid-' . strtolower(preg_replace('/[^a-zA-Z0-9-]+/', '-', drupal_get_path_alias($_GET['q'])));
to
$vars['body_id'] = 'pid-' . strtolower(preg_replace('/[^a-zA-Z0-9-]+/', '-', drupal_get_normal_path(drupal_get_path_alias($_GET['q']))));
in template.php
Is this a good idea or are there some implications I am missing here?
Comments
Comment #1
Poieo commentedClosing as won't fix since the D6 version is not getting any new development.