-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quiz Review, Navigation Anchor Links Incorrect #104
Comments
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 |
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:
I mentioned #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? |
Possibly related to: #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.
The text was updated successfully, but these errors were encountered: