Download & Extend

Better URLs: avoid underscore and separate out "delete"

Project:Path redirect
Component:Code
Category:feature request
Priority:minor
Assigned:HorsePunchKid
Status:closed (fixed)

Issue Summary

In brief, does it make sense to have:

http://example.com/admin/build/path-redirect
...rather than:
http://example.com/admin/build/path_redirect

...and:

http://example.com/admin/build/path-redirect/add
...instead of:
http://example.com/admin/build/path-redirect/new

...and:

http://example.com/admin/build/path-redirect/delete/314
...as opposed to:
http://example.com/admin/build/path-redirect/edit/314/delete

The latter two changes I have already made for the D6 branch while doing the conversion; it just seemed like the more standard way. I can whip patches shortly. Is this likely to break existing links? (For example, does the new pathauto integration rely on the URL in anyway, or just the API?)

Comments

#1

Status:active» needs review

Here's a patch which does the above. It also separates out the admin overview function from the add/edit form preparation, and it cleans up a couple of other tiny issues which should be clear if you skim the patch.

I'll test this a little more, and I'll probably commit it soon if there are no objections.

AttachmentSizeStatusTest resultOperations
path_redirect-5.x-1.x_better_1.patch11.05 KBIgnored: Check issue status.NoneNone

#2

I think I need to do an update to clear the menu cache after making this change.

AttachmentSizeStatusTest resultOperations
path_redirect-5.x-1.x_better_2.patch11.56 KBIgnored: Check issue status.NoneNone

#3

Status:needs review» fixed

Tested with and without clean URLs on MySQL and Postgres; upgrade worked fine, everything looks good. Committed!

I need to check how this matches up with the 6.x branch now...

#4

I applied the necessary parts of this patch to the 6.x branch.

#5

Status:fixed» closed (fixed)

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