The [site:url-brief] token in Drupal 7 is supposed to print something like "mysite.com" (the URL of the site's front page, without the protocol).

Instead, it prints "mysite.com/" (with a slash at the end).

This makes it look extremely ugly in its primary use case (user registration emails and the like). It's also a regression from D6, where the equivalent user.module variable did not put the slash at the end.

The attached patch fixes it.

Comments

dave reid’s picture

Issue tags: +token

Tagging for me to review very soon

JacobSingh’s picture

Status: Needs review » Reviewed & tested by the community

Tested it, makes sense.

dave reid’s picture

Looks good to me too.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)
Issue tags: -token

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