I made a language option block. It works same as language menu.
I used $PAGE->url to get current page url and I found there is double "&" inside url.
Example:
<a href="https://nafo.localhost/mod/quiz/attempt.php?attempt=3632&amp;page=2&lang=en">English(En)</a>
<a href="https://nafo.localhost/mod/quiz/attempt.php?attempt=3632&amp;page=2&lang=no">NORSK-BOKMÅL(NO)</a>
There is double "&amp;" in the url. str_replace("&", "&" ... ) function could be a solution. Is there any moodle function to get rid of it or ...?
Version:
Moodle: 2.8.3
Theme : Bootstrapbase: 2.3.0
Thank you