I am running Drupal 7.0-rc3 on IIS 7 / Microsoft SQL Server 2008 and I realized that the l function does not rewrite the urls according to url aliases.

However, when I use the alias in the browser, then the page is being displayed normally.
I think that the problem is caused by the drupal_lookup_path function

Comments

damien tournoud’s picture

Status: Active » Fixed
StatusFileSize
new1.02 KB

I can actually confirm that. Ew. We apparently have no real test for this in core :)

The problem is in the SUBSTRING_INDEX function. A bunch of off-by-one errors.

I committed the attached patch.

Status: Fixed » Closed (fixed)

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

KingOfMyCastle’s picture

I think I have the same error. If I set up a page in Views it seems to work fine but when I have any normal page it's impossible to fix the alias.

The alias exists if you type in the url, i.e. /contact-us but the menu just shows node/7

This can be seen in the configuration/url aliases page. The Alias column does say 'contact-us' but when you hover over it the url is still node/7

Does this fix require a complete Drupal re-install? And if so can I back-up my existing database and restore once the re-install has finished?

Thanks.