The help under the 'Path alias' field says:

Optionally specify an alternative URL by which this node can be accessed. For example, type 'about/' when writing an about page.

But when we use a traling '/' the whole path alias doesn't work anymore. This should be chaged, so this can be used..

I will investigate this further and return any conclusions to the devel-list.

Comments

matt westgate’s picture

Hmmm, this seems to be working in the latest cvs. Take http://drupal.org/about/, for example.

killes@www.drop.org’s picture

function node_get_alias($path) {

  $result = db_query("SELECT nid FROM {node} WHERE path = '%s'", trim($path, "/"));
  if ($node = db_fetch_object($result)) {
    return "node/view/$node->nid";
  }
}

The problem is not what you put in the browser, but what you put into the database. If you did add a slash at the end, your path will not be found by that query. I suggest to simply change the help text.

dries’s picture

Assigned: Unassigned » dries

The field description has been corrected. Marking this fixed.

apa’s picture

I´m using last CVS.
I have small problem with url aliasing.
Alias: admin
Maps to: *blog/1

so then if I want to type adress "http://www.blog.wz.cz/admin"
then web browser show me first page.

i don´t understand it.
please help me.
Thanx. apa.