Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292812

path_load and drupal_lookup_path are inconsistent when choosing the 'current' path of an entity

$
0
0

While not mentioned in the API documentation, drupal_lookup_path will return the most recently created alias for a given path (based on having the highest pid).

Sister function path_load, will also return a single alias, but there is no explicit preference for one alias over another, so it is likely that it will return the oldest alias.

We should add an orderBy to the latter function, to make the consistent.


Viewing all articles
Browse latest Browse all 292812

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>