User tests: Successful: Unsuccessful:
Pull Request for Issue #37814 .
Create a numeric tag, a non-numeric tag starting with a number and a non-numeric tag starting with a non-numeric character in one article
Non numeric tags articles list displayed when selecting a non-numeric tag
error 404 when clicking on numeric tag or a non-numeric tag starting with a number.
Same results in popular tags module
Non numeric tags articles list displayed when selecting a non-numeric tag
when clicking on numeric tag, articles list is displayed
when clicking on non-numeric tag starting with a number, articles list is displayed
Popular tags module works fine in all cases
Status | New | ⇒ | Pending |
Category | ⇒ | com_tags Front End |
@conseilgouz please apply the change as suggested by @richard67 and me to fix the drone issue: https://ci.joomla.org/joomla/joomla-cms/54145/1/3
@conseilgouz It's not enough to mark suggested changes as resolved for applying the changes. It needs to commit a suggestion to apply it, or if you don't want to apply it then tell the reason in an answering comment. But not just mark the suggestion as resolved without doing anything.
I have tested this item
Tested successfully in Joomla 3.10.10-dev of 17 May using PHP 8.0.15
@toivo Have you also tested that links from a non-numerical tag still work?
@conseilgouz I think your testing instructions should be completed by such a step to test if non-numerical tags are not broken. In general it is not sufficient to test only if a PR solves an issue, it needs to test also if the function is not broken for other use cases.
i would like to work on this issue. This would potentially be my first contribution to the Joomla! CMS. Would need some help to pull it off.
please tell me how can i test this issue and help solve it.
i would like to work on this issue. This would potentially be my first contribution to the Joomla! CMS. Would need some help to pull it off.
@eeshaanSA This here is not an issue, it is already a pull request for solving the issue. So @conseilgouz has already worked on it, and this here is the result. You can help with testing it. But it would not make much sense to have 2 people working on the same issue for which there is already a solution (= this pull request here).
@richard67 yes, non-numeric tags also work as links.
Labels |
Added:
?
|
I have tested this item
Tested successfully in Joomla 3.10.10-dev of 18 May using PHP 8.0.15 in Wampserver 3.2.8.
@eeshaanSA : you could test this pr as one more human test is required.
Hello, I think I have a similar problem on Joomla 4.1.3. php 7.4
Some tags make a return to the home page and others give a 404 error.
https://planetarium-epinal.com/etablissement-scolaire/les-ateliers-scientifiques
Hello, I think I have a similar problem on Joomla 4.1.3. php 7.4 Some tags make a return to the home page and others give a 404 error. https://planetarium-epinal.com/etablissement-scolaire/les-ateliers-scientifiques
It's the same issue in Joomla 4.
In your case, it's a tag starting with a number.
I just tested it with Joomla 3.10.9 and everything is fine.
Same fix should be done in J.4.1 (it's in line 189)
Usually there is no need to do a PR against 4.1 about the same issue with a downstream branch once we get the seccond test here the patch will be merged and will be merged up to 4.1 and 4.2
Ok good. I am relieved that a solution can be quickly deployed. But why do the other tags refer to the home page instead of displaying the articles common to the tag?
I tested this patch on a 3.10.9 version: it works fine for me.
@fontanil Could you mark your test result in the issue tracker? Just go to https://issues.joomla.org/tracker/joomla-cms/37815 , then use the blue “Test this” button at the top left corner, select your test result and then submit. Thanks in advance.
I have tested this item
Tested successfully on Joomla! 3.10.9
Status | Pending | ⇒ | Ready to Commit |
RTC
By just reading the code, the change here could be backward-incompatible. Before this change, we allow displaying multiple tags by passing tag IDs comma separated like this http://localhost/joomla4/index.php?option=com_tags&view=tag&id=2,3, but with the change introduced by this PR, this behavior is lost
What is actual happening here is that in our routing code, we return tag id in this form ID:ALIAS (see https://github.com/joomla/joomla-cms/blob/3.10-dev/components/com_tags/router.php#L183 - I don't know why we have code like that)
Then on this code https://github.com/joomla/joomla-cms/blob/4.1-dev/components/com_tags/src/Model/TagModel.php#L189 , we use cmd
filter, the : character is removed and later, when it is converted to int
, it return wrong value for numeric tags (while it is still OK for string tags)
Without knowing how links to tags are used on all places in Joomla, I think it would be more safe to use string
filter instead of int
here. It solves the issue, and won't cause by unexpected (backward-incompatible) behavior. Ping @zero-24
Status | Ready to Commit | ⇒ | Pending |
Back to pending due to reasons stated above.
Labels |
Added:
?
|
I have tested this item
I have tested this item
Tested successfully. Thanks!
P.S.: And in general you should not try to apply a PR for 3.10 on a 4.x and vice versa.
Status | Pending | ⇒ | Ready to Commit |
RTC
I do not understand. It's apparently the same PR, but I can't test it? And so fix my website?
And that does not answer my question why my tags return to the homepage or in error 404...? Is it the same problem?
I do not understand. It's apparently the same PR, but I can't test it? And so fix my website?
@Magnytu2 Your screenshot shows that you are trying to apply this PR which is made for 3.10 on a Joomla 4 installation. This cannot work, especially because in Joomla 3 the changed file is https://github.com/joomla/joomla-cms/blob/3.10-dev/components/com_tags/models/tag.php and in Joomla 4 it is https://github.com/joomla/joomla-cms/blob/4.1-dev/components/com_tags/src/Model/TagModel.php , so it is obviously at a different place, so the patchtester can not apply the change on a Joomla 4.
It should be clear by my previous comment. I have no idea what was not understandable.
Sorry, what is not easy to understand is that we use a single PR for two versions of Joomla and therefore we can only test on a single version.
Sorry, what is not easy to understand is that we use a single PR for two versions of Joomla and therefore we can only test on a single version.
@Magnytu2 It seems you are the only one who has problems to understand that. This PR here will be merged into 3.10-dev and then the change is merged up into 4.1-dev, where it goes into the right file at the right place, like we did it all the time.
Yes excuse me. I don't speak English, and I don't have the skills to modify a Php file. But my site relies on the use of tags and it is very important. So two more questions please. Can I switch my joomla 4.1 to DEV version to get the patches and if so from when? Because I also stay with a use of my tags which no longer makes a list of articles but which sends me back to the home page. Thank you
Yes excuse me. I don't speak English, and I don't have the skills to modify a Php file. But my site relies on the use of tags and it is very important. So two more questions please. Can I switch my joomla 4.1 to DEV version to get the patches and if so from when? Because I also stay with a use of my tags which no longer makes a list of articles but which sends me back to the home page. Thank you
@Magnytu2 I would not recommend to switch a live site to development versions. But you can do that on a copy of your life site either on a local webserver or on a subdomain of your domain. There you could use the nightly builds.
For now, to solve your issue, I offer you to download this zip file from my domain: https://test5.richard-fath.de/TagModel.zip .
It contains the modified "TagModel.php" file with the fix from this PR here.
Unpack the zip and then upload the TagModel.php file into folder "components/com_tags/src/Model" of your website.
Oh awesome! A HUGE thank you. I no longer get 404 errors on tags. I always have the problem of redirecting to the homepage that I don't understand when I click on a tag. But I'm looking.
Labels |
Added:
?
Removed: ? |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-06-09 10:41:41 |
Closed_By | ⇒ | zero-24 |
Merging here to please @richard67 . Thanks @conseilgouz
same syntax than com_tags/views/tag/view.feed.php