path redirect does not work when i18n module is enabled
sinasalek - April 21, 2008 - 18:48
| Project: | Path Redirect |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi,
I spent huge amount of time figuring out what's going on!. so if you're using i18n module you may experience the same problem.
i18n module catches the url before path_redirect, and because it does not understand it, it simple redirects user to home page!
Solution is to change path_redirect module weight less than i18n module weight which is -10 currently in system table. that would be nice if someone provide the require patch for fixing this issue.
Thanks for sharing this great module :)
Regards

#1
Is there a way to do this programmatically? What are the conventions on having modules set their own weight? It seems like everyone would want their module to be first if it weren't regulated in some way.
#2
There is a module for tweaking weight via admin interface, i didn't use it but i guess that's easier.
And also i think path_redirect module should set its weight less than i18n module when it's installing to become able to catch the urls.
#3
hello,
weight 20 i18n - blocks 5.x-2.x-dev
weight 0 i18n - menu 5.x-2.x-dev
weight 0 i18n - profile 5.x-2.x-dev
weight 20 i18n - taxonomy 5.x-2.x-dev
weight 0 i18n - views 5.x-2.x-dev
weight -10 Internationalization 5.x-2.x-dev
weight 0 Menutranslation 5.x-1.x-dev
weight 10 Translation 5.x-2.x-dev
this means concret: ideal weight -11 for path redirect?
sorry - there are a lot of different weights of the i18n modules and i'm a little bit confused ...
greetings momper
#4
The name is exactly "i18n" in name field in Drupal "system" table. but you don't need to be worry about that. give path_redirect -90 for example and you're good to go. path_redirect should be very first module in the list.
#5
thanks :)
#6
Did change the weight of path_redirect to -90 but still it does not work when i18n is on :-((