Closed (fixed)
Project:
Spaces
Version:
6.x-3.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2011 at 05:00 UTC
Updated:
18 May 2011 at 16:41 UTC
hi,
how can i get the correct node alias without the space element in the url?
i'm using this function:
if (arg(0) == 'node' && is_numeric(arg(1))) {
$alias = url(drupal_get_path_alias('node/' . arg(1)), array('absolute' => TRUE));
}
but i'm getting the url with the space element...
result:
http://www.mysite.com/space_element/my-node-title
wanted result:
http://www.mysite.com/my-node-title
thanks.
Comments
Comment #1
hefox commentedPURL is providing the rewrite of the URL, so this is really how to disable purl.
To disable purl, options can be passed that info:
so for your example
Comment #2
brunorios1 commentedthank you very much!