×
Blue Eagle 5 v1.5.3 has been Released (31 Mar 2020)

The Kunena team has announce the arrival of Kunena template Blue Eagle 5 v1.5.3 which is now available for download. This version addresses most of the issues that were discovered in development.

Question Crypsis URL issues

More
4 years 1 month ago - 4 years 1 month ago #1 by jderrick
Crypsis URL issues was created by jderrick
Hello,

I'm experiencing issues with URLs on Crypsis. Both SEF and standard.

If I try going to this URL using Blue Eagle:

https://xxxxxxxx/forum?view=topic&defaultmenu=644&catid=5&id=10&mesid=44&layout=default (normal)
https://xxxxxxxx/forum/a-category/10-a-forum-topic/44 (sef)

Then the URL is automatically routed to:

https://xxxxxxxx/forum?view=topic&catid=5&id=10&start=6#44 (normal)
https://xxxxxxxx/forum/a-category/10-a-forum-topic#44 (sef)

This routing does not happen using Crypsis meaning that all the pagination links end up looking like this:

https://xxxxxxxx/forum/a-category/10-a-forum-topic/44?limitstart=0

And therefore don't work properly.

I've tracked the issue down to this file in Kunena core:

libraries/kunenea/controller/application.php

In the getInstance function where it decides whether or not the HMVC controller exists.

Is there a fix for this please?
Last edit: 4 years 1 month ago by jderrick. Reason: removing actual topic name

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #2 by jderrick
Replied by jderrick on topic Crypsis URL issues
p.s. this has all stemmed from a URL in a subscription email

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #3 by xillibit
Replied by xillibit on topic Crypsis URL issues
Hello,

Can-you post here please the Kunena report configuration settings ?

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #4 by jderrick
Replied by jderrick on topic Crypsis URL issues
Sure. This is for my local version. Same as live...

This message contains confidential information

Database collation check: The collation of your table fields are correct

Joomla! SEF: Enabled | Joomla! SEF rewrite: Enabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 2000 seconds | Max execution memory: 256M | Max file upload: 100M

Kunena menu details:

Warning: Spoiler!

Joomla default template details : J51_Grafik | author: Joomla51 | version: 1.0 | creationdate: April 2014

Kunena default template details : Crypsis | author: Kunena Team | version: 4.0.10 | creationdate: 2016-02-18

Kunena version detailed: Kunena 4.0.10 | 2016-02-18 [ Villavicencio ]
| Kunena detailed configuration:

Warning: Spoiler!
| Kunena integration settings:
Warning: Spoiler!
| Joomla! detailed language files installed:
Warning: Spoiler!

Third-party components: None

Third-party SEF components: None

Plugins: None

Modules: None

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #5 by jderrick
Replied by jderrick on topic Crypsis URL issues
After a lot of playing around I think this is what is happening:

Crypsis uses the new HMVC architecture which has a problem:

When you have a url ending in /[post number] it goes to the correct page but the URL remains the same which means any further links built (i.e. pagination) also have /[post number] meaning it will always go to the page with that post on it, even if you have &limitstart=0 at the end.

The original architecture would redirect you to the correct url which has the post number at the end as a hash.

Are you experiencing the same issue on your version?

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #6 by jderrick
Replied by jderrick on topic Crypsis URL issues
I've made a temporary hack to fix the issue. At the top of components/com_kunena/template/crypsis/page/topic/default/default.php I have added:
// Temp hack to fix message ID URL issue
$app = JFactory::getApplication();
$input = JFactory::getApplication()->input;
$mesid  = $input->get('mesid');
if($mesid){
    $message = KunenaForumMessageHelper::get($mesid);
    if($message->exists()){
        $app->redirect ($message->getUrl(null, false));
    }    
}

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #7 by xillibit
Replied by xillibit on topic Crypsis URL issues
Hello,

I have made this change : github.com/Kunena/Kunena-Forum/pull/4149 , it will be in newt release of Kunena 5.0

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.104 seconds