question get_absolute_url doesn't apply language to url

We are using askbot with a language other than english.
One of the thing that changes is the URL for questions. Instead of having "http://site.com/question/12/this-is-a-question", our questions show up as "http://site.com/foo/12/this-is-a-question".

This is done using the .po/.mo mechanism and works quite well.

The problem is that the send_email_alerts.py uses the question.get_absolute_url call to get the question URL.

It appears that the translation is not applied in this case and we get what is essentially a wrong URL (/question/12 instead of /foo/12) which gives us a 404 error.

Benoit's avatar
875
Benoit
asked 2011-07-13 13:05:28 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments