Download & Extend

Module anchor links incorrect in admin/user/permissions

Project:Drupal core
Version:7.x-dev
Component:user.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)
Issue tags:Needs tests, Novice, UBUserTesting2009, Usability

Issue Summary

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>

Comments

#1

Here's a quick patch for this.

AttachmentSizeStatusTest resultOperations
392582.001.patch1.27 KBIdleUnable to apply patch 392582.001.patchView details

#2

Status:active» needs review

forgot to change status.

#3

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

AttachmentSizeStatusTest resultOperations
392582.002.patch1.25 KBIdlePassed: 10931 passes, 0 fails, 0 exceptionsView details

#4

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?

#5

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.

#6

Status:reviewed & tested by the community» fixed

Committed to CVS HEAD. Thanks!

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

#7

Status:fixed» closed (fixed)

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

nobody click here