← Back to team overview

team4alfanous team mailing list archive

[Branch ~team4alfanous/alfanous/alfanous-git] Rev 490: fix a problem in search by clicking on ayah identifier

 

------------------------------------------------------------
revno: 490
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Sat 2013-01-05 19:11:26 +0100
message:
  fix a problem in search by clicking on ayah  identifier
modified:
  src/alfanous-django/templates/results.html


--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git

Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'src/alfanous-django/templates/results.html'
--- src/alfanous-django/templates/results.html	2013-01-05 17:17:53 +0000
+++ src/alfanous-django/templates/results.html	2013-01-05 18:11:26 +0000
@@ -195,7 +195,7 @@
 							 <span dir="ltr" class='prev_aya'>
 							 (   
 							 {% with ayaresult_content.aya.prev_aya.id|stringformat:"s" as prev_aya_id %}
-								 {% with 'sura:"'|add:ayaresult_content.aya.prev_aya.sura|add:'" + aya_id:'|add:prev_aya_id  as new_query %}
+								 {% with 'sura:"'|add:ayaresult_content.aya.prev_aya.sura|add:'" + aya_id:'|add:prev_aya_id|urlencode  as new_query %}
 									<a class='no_decoration' href='?{% build_search_link params  new_query 1 False %}'> 
 								{% endwith %}
 							{% endwith %}
@@ -233,7 +233,7 @@
 					  <span dir="rtl" class='main_aya'>
 					  		(   
 							 {% with ayaresult_content.aya.id|stringformat:"s" as aya_id %}
-								 {% with 'sura:"'|add:ayaresult_content.identifier.sura_name|add:'" + aya_id:'|add:aya_id  as new_query %}
+								 {% with 'sura:"'|add:ayaresult_content.identifier.sura_name|add:'" + aya_id:'|add:aya_id|urlencode  as new_query %}
 									<a class='no_decoration' href='?{% build_search_link params  new_query 1 False %}'> 
 								{% endwith %}
 							{% endwith %}
@@ -260,7 +260,7 @@
 							 <span dir="ltr" class='next_aya'>
 							(   
 							 {% with ayaresult_content.aya.next_aya.id|stringformat:"s" as next_aya_id %}
-								 {% with 'sura:"'|add:ayaresult_content.aya.next_aya.sura|add:'" + aya_id:'|add:next_aya_id  as new_query %}
+								 {% with 'sura:"'|add:ayaresult_content.aya.next_aya.sura|add:'" + aya_id:'|add:next_aya_id|urlencode  as new_query %}
 									<a class='no_decoration' href='?{% build_search_link params  new_query 1 False %}'> 
 								{% endwith %}
 							{% endwith %}