Active
Project:
Search API ranges
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jul 2013 at 08:19 UTC
Updated:
3 Dec 2014 at 16:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
khiminrm commentedQuick and dirty solution
in the file
widget_links.incadd lines:just after:
Comment #2
khiminrm commentedI've tried without pretty paths module and have no problems. Active facet is correct. Maybe we must reopen https://drupal.org/node/1511144?
Comment #3
khiminrm commentedI've tried to modify code in such way:
do not redefine $range_field before
execution of function
or
After getting $element replace the path and unset $element[$key]['#query']['f'] for the $elements.
All this I've done and the urls are correct, but when I click on facets I get '404'.
Maybe this is not a correct solution and the task is not easy for me. Maybe someone more experienced will help to find the correct way? Thanks!
Comment #4
khiminrm commentedAttaching the solution from #1 as a patch
Comment #5
khiminrm commentedMade a little modification to the patch for more accurate comparison of arguments
Comment #6
khiminrm commentedComment #7
Anonymous (not verified) commentedCommitted,
http://drupalcode.org/project/search_api_ranges.git/commit/b21c756
Comment #9
divined commentedNot work with commerce fields i.e. field_product:field_price/[0 TO 10]
Comment #10
divined commentedi found problem:
Search_api_ranges.module (381)
if we have path: site.com/filter1/value1/filter2/value2 logic !($key % 2) is fine, but if we have url like:
site.com/some_page/filter1/value1/filter2/value2 ????