http://localhost/j4/index.php?option=com_kunena&view=topic&catid=2&id=37&mesid=42&Itemid=151
http://localhost/j4/index.php?option=com_kunena&view=topic&catid=2&id=37&mesid=42&Itemid=101
provided url on components/com_kunena/template/aurelia/layouts/widget/button/default.php =
index.php?option=com_kunena&view=topic&layout=reply&catid=2&id=37&Itemid=151
Nightly joomla 4.0
Nightly Kunena 6.0
Extra info:
Default joomla menu, where the home is set as itemid 101
Kunena menu itemid = 151
Labels |
Added:
No Code Attached Yet
|
the input value. $this->url
So not hardcoded as you wrote but using the api and being passed through jroute
when i use hardcoded is the same:
<a href="index.php?option=com_kunena&view=topic&layout=reply&catid=2&id=37&Itemid=151"> test </a>
Result:
<a href="/j4/index.php?option=com_kunena&view=topic&layout=reply&catid=2&id=37&Itemid=101"> test </a>
I have been fighting this (I think) in trying to get one of my components ready for both J3 and J4 based on the new modern router.
J3 and J4 router behaves differently: the code returns a different SEF URL on J3 and on J4. IMO this means that the new / modern router as implemented in J4 is not B/C.
I have drilled it down to the different handling of the Itemid.
My workaround is to do a check on J version and based on that set / unset the Itemid in the preprocess function of the MenuRules.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-09-22 09:05:38 |
Closed_By | ⇒ | richard67 |
What do you mean by provided url