1. Set hash location: e.g. set location to node/1#id
2. Remove hash location: e.g. set location to node/1 or
3. #id is still there, e.g. node/1#id or #id

Comments

okokokok’s picture

(Silly, <front> wasn't coming through in the description, it's missing after both ors)

donquixote’s picture

Confirmed.

There is a piece of code in the submit handler, originally taken from menu_edit_item_validate().

        if (isset($parsed_link['fragment'])) {
          $item['options']['fragment'] = $parsed_link['fragment'];
        }

In the original menu_edit_item_validate() this was

    if (isset($parsed_link['fragment'])) {
      $item['options']['fragment'] = $parsed_link['fragment'];
    }
    else {
      unset($item['options']['fragment']);
    }

The unset() is missing now.

The same problem occurs for query.
I am surprised noone else noticed this bug until now!!!

A fix will soon go to both branches (2.x and 3.x)

donquixote’s picture

Status: Active » Fixed

Fixed in 6.x-2.1
... and 6.x-3.0-unstable3

donquixote’s picture

Status: Fixed » Closed (fixed)