Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- SQL+Templates preview fix if SCRIPT_NAME set

  • Loading branch information...
commit 55297ff9a47f71c7c482c10e6988041b360478f2 1 parent de515e2
authored April 26, 2012 modarch3_vums_d2 committed April 26, 2012
6  debug_toolbar/templates/debug_toolbar/panels/sql.html
@@ -43,10 +43,10 @@
43 43
 					<td class="actions">
44 44
 					{% if query.params %}
45 45
 						{% if query.is_select %}
46  
-							<a class="remoteCall" href="/__debug__/sql_select/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}&amp;alias={{ query.alias|urlencode }}">Sel</a>
47  
-							<a class="remoteCall" href="/__debug__/sql_explain/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}&amp;alias={{ query.alias|urlencode }}">Expl</a>
  46
+							<a class="remoteCall" href="{{ BASE_URL }}/__debug__/sql_select/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}&amp;alias={{ query.alias|urlencode }}">Sel</a>
  47
+							<a class="remoteCall" href="{{ BASE_URL }}/__debug__/sql_explain/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}&amp;alias={{ query.alias|urlencode }}">Expl</a>
48 48
 							{% ifequal query.engine 'mysql' %}
49  
-								<a class="remoteCall" href="/__debug__/sql_profile/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}&amp;alias={{ query.alias|urlencode }}">Prof</a>
  49
+								<a class="remoteCall" href="{{ BASE_URL }}/__debug__/sql_profile/?sql={{ query.raw_sql|urlencode }}&amp;params={{ query.params|urlencode }}&amp;duration={{ query.duration|floatformat:"2"|urlencode }}&amp;hash={{ query.hash }}&amp;alias={{ query.alias|urlencode }}">Prof</a>
50 50
 							{% endifequal %}
51 51
 						{% endif %}
52 52
 					{% endif %}
2  debug_toolbar/templates/debug_toolbar/panels/templates.html
@@ -14,7 +14,7 @@
14 14
 {% if templates %}
15 15
 <dl>
16 16
 {% for template in templates %}
17  
-	<dt><strong><a class="remoteCall toggleTemplate" href="/__debug__/template_source/?template={{ template.template.name }}">{{ template.template.name|addslashes }}</a></strong></dt>
  17
+	<dt><strong><a class="remoteCall toggleTemplate" href="{{ BASE_URL }}/__debug__/template_source/?template={{ template.template.name }}">{{ template.template.name|addslashes }}</a></strong></dt>
18 18
 	<dd><samp>{{ template.template.origin_name|addslashes }}</samp></dd>
19 19
 	{% if template.context %}
20 20
 	<dd>

0 notes on commit 55297ff

Please sign in to comment.
Something went wrong with that request. Please try again.