1
1

I have just come across that after translating the badges to Cyrillic, the badges links on the profile page are no longer redirecting properly. The main /badges/ page has its single badges URLs redirecting fine after the translation, however on the profile page, the translated badge name is removed from the url. Should be /badges/27/тест for example, however it redirects to /badges/27/ which outputs a 404 error. This occurs for badges only, tags, users and questions URLs are fine.

asked 02 Aug '10, 05:10

Georgi%20Vasilev's gravatar image

Georgi Vasilev
38661414
accept rate: 23%

edited 02 Aug '10, 05:11


I have edited the file /osqa/forum/skins/default/templates/users/stats.html at line 133:

 <a href="{% url badges %}{{award.id}}/{{award.name|slugify}}" title="{{ award.description }}" class="medal"><span class="badge{{ award.type }}">&#9679;</span>&nbsp;{{ award.name }}</a><span class="tag-number"> &#215; {{ count|intcomma }}</span><br/>

I have removed |slugify from the string and everything seems to be OK now. I don't know if I did the right thing but the problem is gone now :)

link

answered 02 Aug '10, 10:13

Georgi%20Vasilev's gravatar image

Georgi Vasilev
38661414
accept rate: 23%

Also this problem in sidebar: /osqa/forum/skins/default/templates/users/sidebar/recent_awards.html

But after editing badges have wrong URL`s

need (like in "badges" page):

.../badges/10/избранный-вопрос

but we have:

.../badges/10/Избранный%20вопрос (without "-" and with "%20" - it make dublicates of pages)

Disallow: /badges/ in Robots.txt will be good for search engines.

link

answered 08 Aug '10, 20:42

Tsuba's gravatar image

Tsuba
13151114
accept rate: 28%

edited 08 Aug '10, 20:44

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×38
×15
×11

Asked: 02 Aug '10, 05:10

Seen: 495 times

Last updated: 08 Aug '10, 20:44

powered by OSQA