Skip to content
Snippets Groups Projects
Commit b7a99363 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #9477 by Neil and Richard: fixed inconsistent behavior of user-specified paths.

parent 54b8ad65
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1003,7 +1003,9 @@ function _menu_build() {
$result = db_query('SELECT * FROM {menu} ORDER BY mid ASC');
while ($item = db_fetch_object($result)) {
// Handle URL aliases if entered in menu administration.
$item->path = drupal_get_normal_path($item->path);
if (!isset($_menu['path index'][$item->path])) {
$item->path = drupal_get_normal_path($item->path);
}
if (isset($_menu['path index'][$item->path])) {
// The path is already declared.
$old_mid = $_menu['path index'][$item->path];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment