ericingram / fwd-admin-url-rewrite

Enables fwd admin URL access from another template
1 stars 1 forks source link

Admin search box redirect issue #2

Closed netsh4rk closed 11 years ago

netsh4rk commented 11 years ago

If you try to search something on any admin search box, selecting the second or the third "live search suggestion" you will be redirected out of the admin template (no /admin/ prefix added)

ericingram commented 11 years ago

You're awesome for finding and reporting these bugs :)

Just pushed a fix into this repository, but it also requires a 1 line change to the admin template itself. In app/templates/admin/_search.html on line 60, replace this:

$('#search').attr('action', url);

With this:

url = $('#search').attr('action') + url;

The change has also been committed to http://github.com/getfwd/fwdcommerce 'develop' branch. Kindly let me know if you run into anything else!

netsh4rk commented 11 years ago

It works! Thank you! ;)