Hello, I was trying the global redirect module because I need to avoid duplicated content (SEO guys suggested that all node/123 should make a 301 redirect to /a-seo-friendly-url) but noticed it doesn't work for anonymous users.

I think the problem may be related to the drupal_get_path_alias function. I noticed in other modules I've written that the path aliases are not retrieved if using this function for anonymous users.

I've noticed this behavior on Drupal 5 and haven't tried on Drupal 6.

Am I missing something here? Is drupal_get_path_alias useful just for authenticated users?

Thanks!

Comments

WorldFallz’s picture

No clue what the problem could be, but path aliases work fine for anonymous users.

alexis’s picture

Regular path aliases of course work but I meant the function drupal_get_path_alias. Perhaps I'm missing some permission? I tried adding 'administer url aliases' and 'create url aliases' for the anonymous role but it didn't help.

Any more ideas?

WorldFallz’s picture

Doesn't sound right-- I would check the module's issue queue and if there's nothing there, post an issue.