[drupal-devel] Path system scaleability

Gabor Hojtsy gabor at hojtsy.hu
Thu Apr 21 08:46:39 UTC 2005

> I just came upon a solution that I think would work well.
> We would :
> 1) add a url_alias column to the node table
> 2) modify node_load to use the url_alias column, if set, otherwise 
> default to node/view/$node->nid, and set the $node->link variable.
> 3) change all l('node/view/ . $node->nid) to l($node->link);
> Then pathauto can just implement the nodeapi hook to set the url_alias 
> to whatever it wants, and the url_alias table will not
> grow unruly.
> I will be rolling a patch for this soon.

There is no need to make the node view a special case, as all url alias 
generation can be intercepted with conf_url_rewrite() and that can 
easily detect a node/$nid URL (although the other node properties are 
not available at that point).


More information about the drupal-devel mailing list