No Code Attached Yet
avatar 810
810
15 Sep 2021

Steps to reproduce the issue

  1. Setup joomla
  2. Install Kunena 6.0 nightly build (https://www.kunena.org/download)
  3. Enable kunena forum
  4. Create a topic
  5. Check the item id on the message action reply button.

Expected result

http://localhost/j4/index.php?option=com_kunena&view=topic&catid=2&id=37&mesid=42&Itemid=151

Actual result

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

System information (as much as possible)

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

Additional comments

avatar 810 810 - open - 15 Sep 2021
avatar joomla-cms-bot joomla-cms-bot - change - 15 Sep 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Sep 2021
avatar brianteeman
brianteeman - comment - 15 Sep 2021

What do you mean by provided url

avatar 810
810 - comment - 15 Sep 2021

the input value. $this->url

avatar brianteeman
brianteeman - comment - 15 Sep 2021

So not hardcoded as you wrote but using the api and being passed through jroute

avatar 810
810 - comment - 15 Sep 2021

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&amp;view=topic&amp;layout=reply&amp;catid=2&amp;id=37&amp;Itemid=101"> test </a>

avatar Ruud68
Ruud68 - comment - 16 Sep 2021

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.

avatar richard67 richard67 - change - 22 Sep 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-09-22 09:05:38
Closed_By richard67
avatar richard67 richard67 - close - 22 Sep 2021
avatar richard67
richard67 - comment - 22 Sep 2021

Closing as having a pull request, see #35634 . @810 Please when you make a PR to solving an issue created by you in future, then close that issue when the PR is ready for testing. Thanks in advance.

avatar Hackwar
Hackwar - comment - 19 Mar 2024

The PR #35634 was closed since there was no response there. However we have a new PR #42989 which should help with the issue as well.

Add a Comment

Login with GitHub to post a comment