From http://www.drupalusability.org/node/9:

The admin/by-module page generates links like:
<a href="/admin/user/permissions#module-my-module">Configure permissions</a>

But the admin/user/permissions page generates anchors like:
<td class="module" id="module-My Module" colspan="21">Comment</td>

CommentFileSizeAuthor
#3 392582.002.patch1.25 KBkarschsp
#1 392582.001.patch1.27 KBkarschsp
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

karschsp’s picture

FileSize
1.27 KB

Here's a quick patch for this.

karschsp’s picture

Status: Active » Needs review

forgot to change status.

karschsp’s picture

FileSize
1.25 KB

re-rolling patch to use ['#id'] rather than ['#anchorname']

Dave Reid’s picture

Issue tags: +Needs tests

Awesome. It's much better using #id, and consistant with current FormAPI conventions.

We should also get some quick tests written to make sure this doesn't break again. Do we have any tests that work with the admin/by-module page?

cburschka’s picture

Status: Needs review » Reviewed & tested by the community

This is just two lines, and both looked okay at a glance. The internal module name is safe to use here, since they are guaranteed to be unique.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks!

Ideally, we'd have a generic broken link tester at some point.

Status: Fixed » Closed (fixed)
Issue tags: -Usability, -Needs tests, -Novice, -UBUserTesting2009

Automatically closed -- issue fixed for 2 weeks with no activity.