Skip to content

Revamp get_view_url() - #258

Open
james-cnz wants to merge 1 commit into
davidherney:masterfrom
james-cnz:revamp_get_view_url
Open

Revamp get_view_url()#258
james-cnz wants to merge 1 commit into
davidherney:masterfrom
james-cnz:revamp_get_view_url

Conversation

@james-cnz

Copy link
Copy Markdown
Contributor

I think this should improve subsection URLs.

@james-cnz
james-cnz force-pushed the revamp_get_view_url branch from b9f0aaf to e5e4aab Compare March 29, 2026 23:43
@james-cnz

Copy link
Copy Markdown
Contributor Author

I didn't notice the subsection display mode option. I've added support for that now.

@james-cnz
james-cnz force-pushed the revamp_get_view_url branch 2 times, most recently from f4e6f7e to a6ba2e5 Compare April 19, 2026 04:03
@james-cnz
james-cnz force-pushed the revamp_get_view_url branch from a6ba2e5 to ad07c08 Compare May 9, 2026 08:42
@davidherney

Copy link
Copy Markdown
Owner

Hi @james-cnz

Please explain the changes you made and how I can validate them so I can test them directly before approving. Trying to deduce everything directly from the code takes me too long.

Gracias

Saludos

@james-cnz

james-cnz commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

Hi @davidherney,

It's basically for two things:
Subsection links in the course index: At the moment, they go to the subsection page, even if the subsection is set to show on the course page. It's changed to display the subsection on the course page in this case.
Returning to the subsection from Edit settings: At the moment it just returns to the relevant course page, but doesn't scroll to the subsection. It's changed to also scroll to the subsection. (I think this might depend on MDL-84045, so you might need a version of Moodle after Feb 19 to see this fix.)
[EDIT: Oh, subsection permalink too. At the moment, they go to the subsection page always (in Moodle <=5.1). With the change it displays the subsection on the course page where appropriate.]

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