?
Referenced as Pull Request for: # 11029
avatar stellainformatica
stellainformatica
4 Jul 2016

Steps to reproduce the issue

Install a multilanguage site with the automatic installation that offers Joomla. 2 languages are enough.
In Articles Options set the parameter Show Voting on Show.
In frontend click on an article and then look the url generated when you go over flags.

Expected result

The urls are normal

Actual result

If you click on the english article and then click on the english flag, you will see that the url change,
at the end &hitcount=0 is added

System information (as much as possible)

Joomla 3.5.1

screen shot 2016-07-04 at 06 36 21

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar stellainformatica stellainformatica - open - 4 Jul 2016
avatar infograf768
infograf768 - comment - 5 Jul 2016

Same behaviour in 3.6.0 RC.
The link has hitcount added when hovering the flag of the Content Language displayed at the time.

avatar Bakual
Bakual - comment - 5 Jul 2016

It's probably like this for years. The argument is generated by the voting plugin and it was added here: 811e839#diff-af047d54862b5a4c88c3eda651c030f8R54

Apparently it changes the global query and if the language flag URLs are generated after the voting plugin changed the URI, it will show up there as well.

Not sure if something else changed somewhere so it only surfaced now, but there has indeed to be a better way ?

avatar mbabker
mbabker - comment - 5 Jul 2016

Make a clone of the global instance and you don't have to worry about it being messed with. The joys of having an application so tightly coupled to global state and singleton objects.

avatar Bakual
Bakual - comment - 5 Jul 2016

See #11029. Thanks @mbabker for the hint.

avatar Bakual Bakual - change - 5 Jul 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-07-05 18:33:28
Closed_By Bakual
avatar Bakual Bakual - close - 5 Jul 2016

Add a Comment

Login with GitHub to post a comment