Revision 175ce36f
Added by Assos Assos almost 6 years ago
drupal7/includes/common.inc | ||
---|---|---|
2311 | 2311 |
$language = isset($options['language']) && isset($options['language']->language) ? $options['language']->language : ''; |
2312 | 2312 |
$alias = drupal_get_path_alias($original_path, $language); |
2313 | 2313 |
if ($alias != $original_path) { |
2314 |
$path = $alias; |
|
2314 |
// Strip leading slashes from internal path aliases to prevent them |
|
2315 |
// becoming external URLs without protocol. /example.com should not be |
|
2316 |
// turned into //example.com. |
|
2317 |
$path = ltrim($alias, '/'); |
|
2315 | 2318 |
} |
2316 | 2319 |
} |
2317 | 2320 |
|
Also available in: Unified diff
-a