Issue With SP LMS Module Link Redirection After Changing Menu Alias - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Issue With SP LMS Module Link Redirection After Changing Menu Alias

G

Gerry

Extension 11 months ago

Hello Joomshaper Support Team,

I am currently working on a multilingual website using your "Shaper Languageschool" template package, which includes the SP LMS extension and the associated module "SP LMS Courses - mod_splmscourses." After modifying the alias to "online-dil-kursları" in the Turkish menu, I noticed an issue where the "SP LMS Courses - mod_splmscourses" module now links to the wrong language version and results in a 404 error. Internal menu links continue to work correctly.

For example, when I am on the English page (/en/online-language-courses) and click on a SP LMS Courses module I created, e.g. "Placement Test", the link redirects to /en/online-dil-kursları/24-placement-test, which produces a 404 error. The link incorrectly points to the Turkish menu item instead of staying within the English version of the page.

I have tried everything to solve the problem (even deleted and reinstalled SP LMS). All language assignments are also entered correctly. Nothing worked. The only thing that works is if I define the aliases in the menus (in all languages with the Menu Item Type: Courses) with completely new names and they have no reference to the title (e.g. "test" as an alias name). But this solution makes no sense to me.

Could you please look into this issue? I hope you are already aware of this behavior and can assist me with a solution.

Thank you for your support.

Best regards,

0
11 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 10 months ago #175742

Please go to this location:

components/com_splms/helpers

and replace helper.php file with the attached file. You need to unzip the file and then replace.

helper.php.zip

It will fix your issue.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #175028

Hello Gerry

Apology for the inconvenience. Please share your administrator access here to check the issue. Use the Hidden Content box to share the credentials. Make sure that you have a full site backup before sharing.

Best regards

0
G
Gerry
Accepted Answer
11 months ago #175032

Hello Ofi Khan,

Thank you for your quick response. Since this is a local server installation (XAMPP), I am unfortunately unable to set up access for you.

Greetings

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #175033

I have checked but I could not get the issue properly. Could you please take a screencast? Show all the options in the module. Also show what it does when clicking on a course on the module. Please share the screenshot via any drive like Google Drive, One drive etc.

0
G
Gerry
Accepted Answer
11 months ago #175086

Hello Ofi Khan,

I have found a way to access the XAMPP server from outside. I just can't turn off the computer and the connection will be slower :))

The access data is in the hidden content.

Thank you in advance

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 10 months ago #175185

I have taken your site backup. Please share a screenshot of your issue to understand it better. For example, share the module name or id. I will check it on my localhost.

You can take a screenshot and share via any platform. For example: Lightshot or Imgur

0
G
Gerry
Accepted Answer
10 months ago #175210

Hello Ofi Khan,

If you have a backup of the site, the error should be self-explanatory. Here's a brief guide on how to replicate the issue:

  1. English homepage (language/index.php/en/):

  2. German homepage (language/index.php/de/):

  3. Turkish homepage (language/index.php/tr/):

Cause of the issue:

The problem is related to the menu items in the respective languages that include the SP LMS module type. These menu items have different alias names in each language, which causes the course links to break in some languages.

If you assign the same alias name in all languages for the menu items, it will work, but that’s not ideal, as each menu item should have its own name. Screenshot-Menu item

I hope this explanation helps clarify the problem.

Best regards

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 10 months ago #175364

Apology for the inconvenience. It looks like a bug on the component. I will talk to the developer team and update you on this. Please allow me some time.

0
G
Gerry
Accepted Answer
10 months ago #175401

Hello Ofi Khan,

Thank you very much for your feedback.

Please allow me some time

No problem, I will wait... I have no other choice 🤣

Thank you in advance,

Regards

0
G
Gerry
Accepted Answer
10 months ago #176029

Thanks, it works now!

Thank you for the friendly and quick support

Regards

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 10 months ago #176195

You are welcome 😊

Please accept the answer that helped you. Finding the solution for the other users with the same issue will be easier. There is a button to accept answers after each comment.

I have a humble request too. It would be very kind of you if you can manage some moment to give us feedback on

  1. Joomla Extension Directory
  2. TrustPilot

This will inspire us to improve.

0