Jeff VIP
Total posts: 745
19 Апр 2013 06:27

Hi Sergey,

There is a typo in constructing the urls causing the filter to malfunction:

index.php?option=com_cobalt&task=records.filter&filter_name[0]=filter_7&filter_val[0]=music%2Bpublisher§ion_id=1&cat_id=3&Itemid=107

Should be

index.php?option=com_cobalt&task=records.filter&filter_name[0]=filter_7&filter_val[0]=music%2Bpublisher§ion_id=1&cat_id=3&Itemid=107

index.php?option=com_cobalt&task=records.filter&filter_name[0]=filter_7&filter_val[0]=music%20publisher§ion_id=1&cat_id=3&Itemid=107

@edit

This occurs when clicking on a filtered link in the record view

Best regards,

Jeff

Последние изменения: 12 Сен 2021


Sergey
Total posts: 13,748
19 Апр 2013 06:35

We use url_encode() PHP method to encode. I do not know how it could possible happen. :)


Jeff VIP
Total posts: 745
19 Апр 2013 19:46

Interesting....

for your information:

%2B = +

%20 = [SPACE]

so filtering url

%2B = +

%20 = [SPACE]

'music+publisher' = no results

'music publisher' = correct results

After updating to v8.87 the problem still exists :S


Sergey
Total posts: 13,748
22 Апр 2013 06:20

There is a typo in constructing

Where is the type? In tutorial?


Konstantin
Total posts: 1,113
22 Апр 2013 07:26

We cant reproduce this bug, in text field in the list we have filter link with %20.


Jeff VIP
Total posts: 745
22 Апр 2013 08:21

Where is the type? In tutorial?

No in the url itself.

Where is the type? In tutorial?

We cant reproduce this bug, in text field in the list we have filter link with %20.

Please check my dev site. Sergey has the link to it

Best regards,

Jeff


Jeff VIP
Total posts: 745
23 Апр 2013 00:20

Hi Sergey,

do you think this is related to my issue?:

http://stackoverflow.com/questions/2678551/when-to-encode-space-to-plus-and-when-to-20

Best regards,

Jeff


Sergey
Total posts: 13,748
23 Апр 2013 11:18

Yes it is the same issue but there is no solution offered there. That link generated by Cobalt or you create prefiltered link?


Jeff VIP
Total posts: 745
24 Апр 2013 06:25

Hi

The link is generated by Cobalt. I have two List Autocomplete fields containing lists with about a hundred values. Some values are one word others are made out of two. The %2B thing bothers me greatly since it occurred after the last update.

Is there a reason why you use url_encode() instead of raw_encode?

Best regards,

Jeff


Jeff VIP
Total posts: 745
24 Апр 2013 06:50

Hey Sergey guess what,

v. 8.71 AND turning SEF ON = correct filter links >> spaces are translated into '+'

v. 8.71 AND turning SEF OFF = wrong filter links >> spaces are translated into '%2B'

Now that is interesting hey?

Best regards,

Jeff


Sergey
Total posts: 13,748
24 Апр 2013 10:44

Then I start to understand. There is only one place where it can happen. I think Jroute works differently.


Sergey
Total posts: 13,748
24 Апр 2013 10:48

And by the way I cannot reproduce this error.

Did you enable UTF in url? Do you use overrides or not?


Sergey
Total posts: 13,748
24 Апр 2013 10:49

Do you use overrides or not? = Do you use rewrite or not?


Jeff VIP
Total posts: 745
24 Апр 2013 21:25

Did you enable UTF in url?

Do you mean the browser settings? I use Autodetect ON and UTF enabled. ISO settings produces the same outcome.

Did you enable UTF in url?

Do you use overrides or not? = Do you use rewrite or not?

I'm not sure what you mean. Do you mean rewrite in htaccess? Do you mean template overrides?


Sergey
Total posts: 13,748
25 Апр 2013 00:30

I mean SEF Joomla parameters


Jeff VIP
Total posts: 745
25 Апр 2013 19:23

Ah ok...

These are my settings (with proper translations of space into '+')

Работает на Cobalt