To make sure that you always get the aliased path you need to change the following line:

98: $view->url = $_GET['q'];
to
98: $view->url = drupal_get_path_alias($_GET['q']);

CommentFileSizeAuthor
#3 aliased_urls.diff402 bytesmarcoBauli

Comments

draco2002’s picture

Status: Active » Needs review
mlsamuelson’s picture

Awesome draco2002!

Um, but, where's the patch?

If you could provide a patch, and we could get a positive test or two (I'll do one), I'd love to commit this update!

mlsamuelson

marcoBauli’s picture

StatusFileSize
new402 bytes

here's a patch

mlsamuelson’s picture

Status: Needs review » Fixed

Draco2002 and marcoBauli,

Awesome. Thanks. I've tested the patch and it worked as advertised... looks pretty straightforward so I just committed the fix. It's in the 5 branch and in HEAD.

Thanks!

mlsamuelson

Anonymous’s picture

Status: Fixed » Closed (fixed)

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