WPLMS course listing drops additional URL arguments

Home Forums Legacy Support Support queries How-to & Troubleshooting WPLMS course listing drops additional URL arguments

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #247892
    jotermoter
    Spectator
    We are running wplms in a localized site context and it works great. (WPLM). WPLM uses query args to select language. Example ?lang=zh-hans The issue we found is that curriculum.php naively appends its id url to the existing page url. This means course URLs for localized content end up looking like this:   ?id=3681?lang=zh-hans Two '?' and the lang is stripped since only the first one parses. I worked around this by adding this line (beneath the foreach($course_curriculum as $lesson)) to update the link properly $lesson['link'] = $lesson['link'] . "&" . parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY) With this code, the link is now ?id=3681&lang=zh-hans And it works great (only one ? and proper query arg delimiter). Can you consider this fix for your next release? Thanks! John  
    #247949
    Diana
    Participant
    @jotermoter, Are you using WPML Plugin(for multilingual sites) or Loco Translate?
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘WPLMS course listing drops additional URL arguments’ is closed to new replies.