- Posts: 10
- Thank you received: 0
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.
Question Problem with URL aliases
13 years 9 months ago #130131
by foesl
Replied by foesl on topic Problem with URL aliases
It is not a big problem, however I just think it doesnt work right: I would prefer no redirection at all when you go to /forum (it just should display the contents of the menu item your forum homepage refers to), but if there has to be a redirection ir really should redirect to the URL your Forum-Homepage refers to. In my case this would be forum/index and not /forum/category/list.
Please Log in or Create an account to join the conversation.
13 years 9 months ago #130132
by foesl
Replied by foesl on topic Problem with URL aliases
The problem also occurs in the breadcrumb pathway, as you can see above/below this thread: Forum Kunena 2.0 K 2.0 Support Problem with URL aliases. When you click on Forum it is the same behaivor. This did not happen with Kunena 1.7.
Please Log in or Create an account to join the conversation.
13 years 8 months ago - 13 years 8 months ago #130735
by Mike-XS
Replied by Mike-XS on topic Problem with URL aliases
Hi. The answers are in the source code.
When you choose menu item type -> homepage, the Kunena menu forum link goes to view=home ( no matter what other default menu item is selected ).
Example:
Kunena Forum ยป Home Page (Alias: forum)
In the Kunena home controller, there's a hardcoded redirect to :
This is why you'll get a 303 redirect to /forum/category/list if you try to access any url with view=home ( eg: /forum/ ) ..
The home view is empty and not used anymore in Kunena 2.0.1 :
In home default.php:
Maybe there's a fix planned in future versions to replace the default home view altogether and remove the forced redirect, or a workaround of some kind. Don't select the home page I guess if you don't want the redirect.. ?
--
And then, if in the Kunena menu I set the default menu item type for 'forum' to category list instead of home page, I get an error displaying the Kunena menu while loading a section or topic..
...
When you choose menu item type -> homepage, the Kunena menu forum link goes to view=home ( no matter what other default menu item is selected ).
Example:
Kunena Forum ยป Home Page (Alias: forum)
Code:
index.php?option=com_kunena&view=home&defaultmenu=502
In the Kunena home controller, there's a hardcoded redirect to :
Code:
index.php?option=com_kunena&view=category&layout=list
Code:
// Find default menu item
$default = $this->_getDefaultMenuItem($menu, $home);
if (!$default || $default->id == $home->id) {
// There is no default menu item, use category view instead
$default = clone $menu->getItem ( KunenaRoute::getItemID("index.php?option=com_kunena&view=category&layout=list") );
if (KunenaRoute::getHome($default)->id != $home->id) $default = clone $home;
$default->query['view'] = 'category';
$default->query['layout'] = 'list';
unset($default->query['defaultmenu']);
}
This is why you'll get a 303 redirect to /forum/category/list if you try to access any url with view=home ( eg: /forum/ ) ..
The home view is empty and not used anymore in Kunena 2.0.1 :
Code:
\components\com_kunena\views\home\view.html.php
Code:
class KunenaViewHome extends KunenaView {
function displayDefault($tpl = null) {
echo " ";
}
}
In home default.php:
Code:
\components\com_kunena\views\home\tmpl\default.php
// This file is for Joomla! 1.5 compatibility
Maybe there's a fix planned in future versions to replace the default home view altogether and remove the forced redirect, or a workaround of some kind. Don't select the home page I guess if you don't want the redirect.. ?
--
And then, if in the Kunena menu I set the default menu item type for 'forum' to category list instead of home page, I get an error displaying the Kunena menu while loading a section or topic..
Code:
Notice: Trying to get property of non-object in \administrator\components\com_kunena\libraries\controller.php on line 109
...
Last edit: 13 years 8 months ago by Mike-XS.
The following user(s) said Thank You: sozzled
Please Log in or Create an account to join the conversation.
13 years 8 months ago - 13 years 8 months ago #130745
by Mike-XS
Replied by Mike-XS on topic Problem with URL aliases
I've been testing this for a while now today ( Joomla 2.5.6 / Kunena 2.0.1 ).
If the Kunena menu is set to forum, see my example images below, no redirect occurs when clicking on the /forum (root) link in the forum pagination menu.
--
With Joomla SEF / Kunena SEF urls enabled and default kunena menu item set to forum :
Pagination link = /forum.html
Index link (kunena menu at the top of the forum) = /forum/index.html
If the Kunena menu is set to another default menu item such as index, then the redirect kicks in.
That's all I know so far.. :silly:
If the Kunena menu is set to forum, see my example images below, no redirect occurs when clicking on the /forum (root) link in the forum pagination menu.
--
With Joomla SEF / Kunena SEF urls enabled and default kunena menu item set to forum :
Pagination link = /forum.html
Code:
[Itemid] => 501
[option] => com_kunena
[view] => category
[defaultmenu] =>
[layout] => list
Kunena menu details:
Warning: Spoiler!
ID Name Menutype Link Path 489 Forum mainmenu Itemid=501 kunena-2012-07-30 501 Forum kunenamenu view=home&defaultmenu=501 forum 502 Index kunenamenu view=category&layout=list&catid=0 forum/index 503 Recent Topics kunenamenu view=topics&mode=replies forum/recent 504 New Topic kunenamenu view=topic&layout=create forum/newtopic 505 No Replies kunenamenu view=topics&mode=noreplies forum/noreplies 506 My Topics kunenamenu view=topics&layout=user&mode=default forum/mylatest 507 Profile kunenamenu view=user forum/profile 508 Help kunenamenu view=misc forum/help 509 Search kunenamenu view=search forum/search
Index link (kunena menu at the top of the forum) = /forum/index.html
Code:
[Itemid] => 502
[option] => com_kunena
[view] => category
[layout] => list
[catid] => 0
If the Kunena menu is set to another default menu item such as index, then the redirect kicks in.
Kunena menu details:
Warning: Spoiler!
ID Name Menutype Link Path 489 Forum mainmenu Itemid=501 kunena-2012-07-30 501 Forum kunenamenu view=home&defaultmenu=502 forum 502 Index kunenamenu view=category&layout=list&catid=0 forum/index 503 Recent Topics kunenamenu view=topics&mode=replies forum/recent 504 New Topic kunenamenu view=topic&layout=create forum/newtopic 505 No Replies kunenamenu view=topics&mode=noreplies forum/noreplies 506 My Topics kunenamenu view=topics&layout=user&mode=default forum/mylatest 507 Profile kunenamenu view=user forum/profile 508 Help kunenamenu view=misc forum/help 509 Search kunenamenu view=search forum/search
That's all I know so far.. :silly:
Last edit: 13 years 8 months ago by Mike-XS.
Please Log in or Create an account to join the conversation.
Time to create page: 0.220 seconds