Open nyanginator opened 7 years ago
That is really weird, we are testing it right now with quiz and other pages and not seeing this issue. As a wild stab in the dark can you set up a host hack and change your wwwroot to something other than localhost. Try something which contains . and looks like a proper domain name. Perhaps the url parser is unhappy with localhost
Same problem. I tried 2 more new installs of Moodle 3.3.1, with $CFG->wwwroot = http://192.168.1.10/cleanmoodle and $CFG->wwwroot = http://192.168.1.10. I created a course, created a quiz activity, and created some true/false questions. I'm noticing now that the navigation is actually broken during the quiz attempt as well, not just on the review page:
As soon as I disable Clean URLs in the plugin settings, the links turn back to normal. I'm using XAMPP 7.1.1 btw.
And what happens when you visit this page as an admin?:
/local/cleanurls/webservertest.php
Everything looks okay there:
In case anybody else is encountering this, here's a quick hacky fix. In /local/cleanurls/classes/local/cleaner/cleaner.php's execute(), basically ignore links on quiz pages that have an anchor # sign in it:
private function execute() {
global $PAGE;
if (strpos($PAGE->pagetype, 'mod-quiz-') !== false) {
if (strpos($this->originalurl->raw_out(false), '#') !== false) {
return;
}
}
...
I mentioned https://github.com/brendanheywood/moodle-local_cleanurls/issues/96 above as well, and it appears the sample Custom Menu does also cause an anchor # to be in the dropdown URL.
@nyanginator this one is probably fixed too. Do mind retesting a few of your issues and if they work in that dev branch can we close these off?
Still seeing the same issue with the latest dev branch. Other issues also remain: https://github.com/brendanheywood/moodle-local_cleanurls/issues/96 and https://github.com/brendanheywood/moodle-local_cleanurls/issues/110
Possibly related to: https://github.com/brendanheywood/moodle-local_cleanurls/issues/96. After taking a quiz, there is a review page. On the top-right is a Quiz Navigation section with anchor links to each question on the page. Those links are incorrect. They should be:
Instead, I'm getting:
My Moodle is installed in /htdocs/cleanmoodle, $CFG->wwwroot = http://localhost/cleanmoodle.