question get_absolute_url doesn't apply language to url

asked 2011-07-13 13:05:28 -0600

Benoit gravatar image

We are using askbot with a language other than english.
One of the thing that changes is the URL for questions. Instead of having "", our questions show up as "".

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

The problem is that the 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.

edit retag flag offensive close merge delete