Skip to content
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

Use relative path to graph php files in template javascript #332

Merged

Conversation

tonyjbutler
Copy link
Contributor

@tonyjbutler tonyjbutler commented Dec 15, 2023

For (admittedly usually dev) Moodle sites located in a subdirectory of the apache root, the graphs can't be displayed because the template requests to the {...}graph.json.php files return 404 errors.

Prefixing the path with the actual wwwroot as defined in config.php fixes this.
Edit: Actually it doesn't (was testing in the wrong dev instance), but using a relative path does. These templates are only rendered in profile.php so this should be fine (I hope).

@tonyjbutler tonyjbutler changed the title Specify wwwroot to ensure correct path to graph files in templates Use relative path to graph php files in template javascript Dec 15, 2023
This fixes a graph display bug for sites located in a wwwroot subdir.
@brendanheywood brendanheywood enabled auto-merge (rebase) September 11, 2024 04:38
@brendanheywood brendanheywood merged commit 0be5f5d into catalyst:MOODLE_35_STABLE Sep 11, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants