Commits

pjenvey  committed b95de6a

[svn] current_url now accepts arguments to pass along to url_for
Fixes #251

  • Participants
  • Parent commits 921bb30

Comments (0)

Files changed (2)

 WebHelpers ChangeLog
 
 0.3.1 (**svn**)
+* current_url now accepts arguments to pass along to url_for. Fixes #251.
 * Updated prototype to 1.5.1.
 * Added image support to button_to. Patch by Alex Conrad. Fixes #184.
 * Fix radio_button and submit_to_remote not handling unicode values.

File webhelpers/rails/urls.py

     else:
         return url == currl
 
-def current_url():
+def current_url(*args, **kwargs):
     """
     Returns the current page's url.
     """
     qs = environ.get('QUERY_STRING', '')
     if qs:
         qs = '?' + qs
-    return url_for() + qs
+    return url_for(*args, **kwargs) + qs
 
 def convert_options_to_javascript(confirm=None, popup=None, post=None, method=None, **html_options):
     if post and not method: