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
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1009748-fix-substring-index.patch | 1.02 KB | damien tournoud |
Comments
Comment #1
damien tournoud commentedI 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.
Comment #3
KingOfMyCastle commentedI 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.