Don't use underscores in URLs

alex_b - March 9, 2009 - 20:27
Project:OpenID Provider
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:reviewed & tested by the community
Description

Core doesn't use _ in URL's (admin/settings/site-information).

Let's change

admin/settings/openid_provider
to
admin/settings/openid-provider

and

user/%user/openid_sites
to
user/%user/openid-sites

#1

alex_b - March 9, 2009 - 20:27
Status:active» needs review
AttachmentSize
396468_dashes.patch 1.06 KB

#2

alex_b - March 9, 2009 - 20:35

And while I'm at it: some empty lines between menu path definitions contained white spaces, some not - removed the empty lines from hook_menu().

AttachmentSize
396468_dashes.patch 1.81 KB

#3

alex_b - March 9, 2009 - 20:35
Assigned to:alex_b» Anonymous

#4

anarcat - March 13, 2009 - 00:51
Priority:normal» minor

Patch fails to apply on D6 branch:

anarcat@homere:/var/alternc/html/r/root/drupal/drupal-6.6/sites/all/modules/openid_provider$ patch < 396468_dashes_0.patch
patching file openid_provider.module
Hunk #5 FAILED at 39.
Hunk #6 succeeded at 58 (offset 10 lines).
1 out of 6 hunks FAILED -- saving rejects to file openid_provider.module.rej

#5

anarcat - March 13, 2009 - 00:51
Status:needs review» patch (to be ported)

#6

Aron Novak - March 19, 2009 - 10:45
Status:patch (to be ported)» needs review

Here is a rerolled patch.

AttachmentSize
396468_dashes_1.patch 2.24 KB

#7

anarcat - March 21, 2009 - 18:30
Status:needs review» reviewed & tested by the community

Excellent, works. Note that it conflicts with #313848: Add section on admin page.

 
 

Drupal is a registered trademark of Dries Buytaert.