? ? Pending

User tests: Successful: Unsuccessful:

avatar Waldbaer88
Waldbaer88
30 May 2019

PR for Issue #24980

Summary of Changes

A link including an array of tag ids like this:
index.php?option=com_tags&view=tag&id[0]=1&id[1]=2
will be like the following after SEF-conversion:
/component/tags/tag/1,2

Until now, any id after the first of the SEF-link will be truncated by the line I changed - my fix will explode it again to include all of them.

Testing Instructions

Part I - See the problem

  1. In a layout override, add a link like this one (make sure the ids are real tag ids on your site):
    <a href="index.php?option=com_tags&view=tag&id[0]=1&id[1]=2">my test link</a>
  2. Make sure SEF is turned off in the global settings. Your link should work as expected and open a site showing both tags.
  3. Turn on SEF in the global configuration. Reload your test-override. Your link URL will be converted. Test the link.

Expected result
Same as with SEF turned off: A site showing all submitted tags.

Actual result
You will get a site showing only the first tag in the URL but ignore the other one.

Testing Instructions

Part II - Fix the problem

  1. Apply this PR.
  2. Test your link again - it should now work and show all tags as expected, no matter if SEF is turned on or off.

Documentation Changes Required

None, no feature changes.

avatar Waldbaer88 Waldbaer88 - open - 30 May 2019
avatar Waldbaer88 Waldbaer88 - change - 30 May 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 May 2019
Category com_tags Front End
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 May 2019
Title
Decode SEF with multiple tag ids #24980
Decode SEF with multiple tag ids
avatar franz-wohlkoenig franz-wohlkoenig - edited - 30 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 May 2019
The description was changed
avatar franz-wohlkoenig franz-wohlkoenig - edited - 30 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 May 2019
The description was changed
avatar franz-wohlkoenig franz-wohlkoenig - edited - 30 May 2019
avatar Waldbaer88 Waldbaer88 - change - 3 Jun 2019
Labels Added: ?
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Jul 2019

@kofaysi can you please test this PR (as its about Tags)?

avatar kofaysi
kofaysi - comment - 24 Jul 2019

I have tested this item successfully on 8d77767

Works as described. Thank you!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25065.

avatar kofaysi
kofaysi - comment - 24 Jul 2019

I have tested this item successfully on 8d77767

Works as described. Thank you!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25065.

avatar kofaysi kofaysi - test_item - 24 Jul 2019 - Tested successfully
avatar viocassel
viocassel - comment - 30 Jul 2019

I have tested this item successfully on 8d77767


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25065.

avatar viocassel
viocassel - comment - 30 Jul 2019

I have tested this item successfully on 8d77767


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25065.

avatar viocassel viocassel - test_item - 30 Jul 2019 - Tested successfully
avatar Quy Quy - change - 30 Jul 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 30 Jul 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25065.

avatar Quy
Quy - comment - 30 Jul 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25065.

avatar infograf768 infograf768 - change - 31 Jul 2019
Labels Added: ?
avatar HLeithner
HLeithner - comment - 31 Jul 2019

thx

avatar HLeithner HLeithner - change - 31 Jul 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-07-31 09:17:35
Closed_By HLeithner
avatar HLeithner HLeithner - close - 31 Jul 2019
avatar HLeithner HLeithner - merge - 31 Jul 2019
avatar kofaysi
kofaysi - comment - 31 Jul 2019

I just checked that listing multiple tags (2, 3, ... pcs) concatenates tags in the title without separator. The result for four multi-word tags may be "tag 1 tag 2 tag named something this is a tag". It makes easier to understand the results, if a separator is used: vertical line | or logical text "OR": "Content for: tag 1 OR tag 2 OR tag named something OR this is a tag". This should go to a new issue to describe and to be solved, right?

avatar HLeithner
HLeithner - comment - 31 Jul 2019

Yes but for j4

Add a Comment

Login with GitHub to post a comment