This module adds a trailing slash to all Drupal generated URLs:
http://drupal.org/sandbox/Akaoni/1145254

The Australian War Memorial needs this functionality so we could migrate our website to Drupal without breaking the current URLs. We couldn't find any other modules that do this and searching on the 'net shows that it's not an unpopular request.

We will continue to work with and develop for Drupal 7.
As we do, we would like to contribute more modules and updates etc.

Comments

dave reid’s picture

Possibly could you help finish up this feature for Global redirect rather than starting a new project? #920198: Enforce Trailing Slash Option

Akaoni’s picture

Component: new project application » module

I had thought of this, however redirection and rewriting are different mechanisms and I didn't want to muddy the waters.
This module modifies outbound URLs (like the core Path module) rather than enforcing incoming URLs (as Global Redirect, mod_rewrite, or IIS URL Rewrite does).

Using Global Redirect to enforce trailing slashes is still a great idea for those who can't or don't want to use mod_rewrite, or IIS URL Rewrite. Once this feature's added I'd be more than happy to add Global Redirect as another way to enforce trailing slashes on this project's page.

jordojuice’s picture

Status: Needs review » Needs work

Fair enough.

Initial screening needs work:
-Please add a README.txt file to your module detailing instructions on installation and setup of the module

Doxygen comments need to be directly above associated functions or php will not associate the documentation with the function. So, no blank lines between comments and functions.

Inline // comments should start with a space, capital letter, and end with a period.

You should not have to set variables in hook_enable(). Use of variable defaults can eliminate this need.

Overall, the module makes good use of Drupal coding and commenting standards. Nicely done! Not much work for me at this point.

Please make the recommended changes and set this issue back to "Needs review" once the changes are pushed to your sandbox. Thank you for your contribution and good luck!

jordojuice’s picture

Issue tags: +pdx-code-review

Updating tags

Akaoni’s picture

Status: Needs work » Needs review

Thanks heaps for the review, jordojuice!!

Changes made.

jthorson’s picture

Assigned: Unassigned » jthorson
Status: Needs review » Needs work

A couple small issues in the globalredirect_form_alter routine, on the [#description] line, as mentioned in IRC:

- wrap the #description value in a t() call,
- Use l() to define the link, as the current version will not be compatible with clean_urls disabled.

Akaoni’s picture

Status: Needs work » Needs review

Thanks for reviewing, jthorson!!
Fixes committed.

jthorson’s picture

Status: Needs review » Reviewed & tested by the community

Looks good ... clean and simple.

Marking RTBC, and a git admin should be around to grant access once the DrupalCon excitement winds down.

Akaoni’s picture

woOtz!!!
Thanks again, jthorson!! ; )

tim.plunkett’s picture

Assigned: jthorson » tim.plunkett
Status: Reviewed & tested by the community » Postponed
StatusFileSize
new5 KB

Here's a patch to clean up some more coding standards issues.

Postponing for the short-term, I will ping Dave Reid about his comment in #2. While a lightweight alternative, I'm not sure this needs to be a full project.

Assigning to myself, so I don't lose track.

Akaoni’s picture

Coding standards fixed.

If it is decided that this should not be a full project, can I please still be approved as a git contributor?
I'd really like to not have to submit a different project and then wait another 3-4 months.

Akaoni’s picture

As per Dave Reid's suggestion, comment posted:
http://drupal.org/node/920198#comment-4923164

tim.plunkett’s picture

Status: Postponed » Closed (won't fix)

After discussion with Akaoni about collaboration, closing this for now.