Ask Your Question
1

question get_absolute_url doesn't apply language to url

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

Benoit gravatar image Benoit flag of United States
865 24 8 31

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.

delete close flag offensive retag edit

Be the first one to answer this question!

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2011-07-13 13:05:28 -0500

Seen: 47 times

Last updated: Jul 13 '11