Incorrect links in translations stats website
Bug #971432 reported by
Rachid
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Translations Stats |
Fix Released
|
High
|
David Planella |
Bug Description
On the website http://
The links in the clickable list of countries are incorrect. For example the URL of the first one (Slovenian) links to:
http://
It should be:
http://
Related branches
lp:~rachidbm/ubuntu-translations-stats/bug-971432
Rejected
for merging
into
lp:ubuntu-translations-stats
- David Planella: Needs Fixing
-
Diff: 131 lines (+103/-2)3 files modifiedINSTALL (+101/-0)
settings.py (+1/-1)
templates/stats/language_list.html (+1/-1)
description: | updated |
Changed in ubuntu-translations: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → David Planella (dpm) |
affects: | ubuntu-translations → ubuntu-translations-stats |
tags: | added: bite-size config |
Changed in ubuntu-translations-stats: | |
assignee: | nobody → Rachid (rachidbm) |
status: | Triaged → In Progress |
Changed in ubuntu-translations-stats: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-translations-stats: | |
status: | Fix Committed → Triaged |
Changed in ubuntu-translations-stats: | |
importance: | Medium → High |
Changed in ubuntu-translations-stats: | |
assignee: | Rachid (rachidbm) → David Planella (dpm) |
status: | Triaged → In Progress |
To post a comment you must log in.
Thanks Rachid for reporting this bug.
This is due to the Apache config and the Django URL definitions not playing together well.
In the meantime, as a workaround, you should be able to access the correct URLs by discarding the last forward slash (/) in the URL, e.g.
http:// 91.189. 93.77/stats/ precise
I'm not an expert in Apache, so any help is appreciated!
See the details below:
In Apache
---------
AliasMatch /admin/ css/([^ /]*\.css) /home/ubuntu/ ul10nstats/ admin-media/ css/$1 ul10nstats/ admin-media/ img/$1 js/([^/ ]*\.js) /home/ubuntu/ ul10nstats/ admin-media/ js/$1 )([^/]* \.css) /home/ubuntu/ ul10nstats/ stats/static/ css/$1/ $2 ul10nstats/ stats/static/ css/$1 ul10nstats/ stats/static/ js/$1 ul10nstats/ stats/static/ img/$1 ul10nstats/ stats/static/ img/$1
AliasMatch /admin/img/([^/]*) /home/ubuntu/
AliasMatch /admin/
AliasMatch /(ui-lightness/
AliasMatch /([^/]*\.css) /home/ubuntu/
AliasMatch /([^/]*\.js) /home/ubuntu/
AliasMatch /([^/]*\.png) /home/ubuntu/
AliasMatch /([^/]*\.ico) /home/ubuntu/
In Django
---------
$ cat ul10nstats/urls.py conf.urls. defaults import *
from django.
from django.contrib import admin
admin.autodisco ver()
urlpatterns = patterns('', 'stats. urls')) , admin.site. urls)),
url(r'^stats/', include(
url(r'^admin/', include(
)
$ cat ul10nstats/ stats/urls. py conf.urls. defaults import *
from django.
from django.contrib import admin ver()
admin.autodisco
urlpatterns = patterns( 'stats. views', list'), r'^(?P< release_ name>[a- z]+)/?$ ', 'language_list', name='language- list'), r'^(?P< release_ name>[a- z]+)/(? P<language_ code>[a- zA-Z\@\ -\_\.\+ ?]+)$', 'language_details', name='language_ details' ),
url(r'^$', 'release_list', name='release-
url(
url(
)
I'm also not using APPEND_SLASH = True in Django