- Posts: 431
- Thank you received: 19
Check for missing $url_itemid
3 years 6 months ago - 3 years 6 months ago #349791
by neo191987
Check for missing $url_itemid was created by neo191987
Hi, can you please check your all components for missing $url_itemid, this is causing some problems with Joomla 4. The links would look like this if missing /index.php/component/hikashop/address.
For example
To be changed to
This fixes this issue
For example
Code:
<?php echo hikashop_completeLink('address'); ?>
To be changed to
Code:
<?php
$url_itemid=(!empty($this->Itemid)?'&Itemid='.$this->Itemid:'');
echo hikashop_completeLink('address'.$url_itemid);
?>
This fixes this issue
Last edit: 3 years 6 months ago by neo191987.
Please Log in or Create an account to join the conversation.
3 years 6 months ago #349795
by nicolas
Replied by nicolas on topic Check for missing $url_itemid
Hi,
We've been adding Itemid parameters in the URLs in many places in the past 2 years. Also, not having the Itemid in a URL doesn't automatically generate an error. It's only in some cases that it does, and you don't want to add it everywhere either (not in the backend for example).
So it's harder and harder to know where we would be missing them as there are less and less of them.
Let us know when you found one and we'll be happy to fix it.
We'll add that change on our end. Thanks.
We've been adding Itemid parameters in the URLs in many places in the past 2 years. Also, not having the Itemid in a URL doesn't automatically generate an error. It's only in some cases that it does, and you don't want to add it everywhere either (not in the backend for example).
So it's harder and harder to know where we would be missing them as there are less and less of them.
Let us know when you found one and we'll be happy to fix it.
We'll add that change on our end. Thanks.
The following user(s) said Thank You: neo191987
Please Log in or Create an account to join the conversation.
3 years 6 months ago - 3 years 6 months ago #349803
by neo191987
Replied by neo191987 on topic Check for missing $url_itemid
Hi, of course only for the front end. This causes some problems I have noticed. In the event that no Itemid has entered, it does not get the current menu ID and Breadcrumb will not be displayed correctly.
Last edit: 3 years 6 months ago by neo191987.
Please Log in or Create an account to join the conversation.
3 years 6 months ago #350299
by neo191987
Replied by neo191987 on topic Check for missing $url_itemid
Please Log in or Create an account to join the conversation.
3 years 6 months ago #350332
by nicolas
Replied by nicolas on topic Check for missing $url_itemid
Hi,
Thank you. We'll look into these too.
Thank you. We'll look into these too.
Please Log in or Create an account to join the conversation.
Time to create page: 0.172 seconds