Hi David,
Here is the code below:
----------------------------------------
if ( !empty($_SERVER['QUERY_STRING'] ) && substr_compare( $_SERVER['QUERY_STRING'], 'lang', 0,4) )
{$page_url = $PAGE->url.'&'; }
else { $page_url = $PAGE->url.'?'; }
$this->content->items[] = html_writer::tag('a', 'English(En)', array('href' => $page_url.'lang=en'));
$this->content->icons[] = html_writer::empty_tag('img', array('src' => $images .'icons/United-Kingdom-flag-icon.png', 'alt'=>'United Kingdom flag icon', 'class' => 'icon'));
$this->content->items[] = html_writer::tag('a', 'NORSK-BOKMÅL(NO)', array('href' => $page_url.'lang=no'));
$this->content->icons[] = html_writer::empty_tag('img', array('src' => $images .'icons/norsk-flag-icon.png', 'alt'=>'norsk flag icon', 'class' => 'icon'));
-------------------------------------------------------------------------------------
It does not persist quiz number. Please find the attachment. I am in quiz number 4. And if now click on language option it starts from quiz no 1.