Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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 "", 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.