Fixed
Details
Details
Priority
Components
Labels
Assignee
Paul Holden
Paul HoldenReporter
Mat Ridley
Mat RidleyPeer reviewer
Sara Arjona
Sara ArjonaIntegrator
Huong Nguyen
Huong NguyenTester
Kim Jared Lucas
Kim Jared LucasParticipants
Huong Nguyen
Kim Jared Lucas
Laurent David
Mat Ridley
noreply
Paul Holden
Sara Arjona
Pull from Repository
Pull Main Diff URL
Pull Main Branch
MDL-78979
Component Lead Review
No
Pull 4.3 Branch
MDL-78979-403
Pull 4.1 Branch
MDL-78979-401
Clockify
Clockify
Created 10 August 2023 at 16:23
Updated 9 May 2024 at 17:56
Resolved 20 October 2023 at 11:29
We are finding that if we create a copy of a course (using the "copy course" function, found under the settings cog), links to database items in the new copy of the course have been changed, from eg https://siteurl/mod/data/view.php?d=20&rid=9388 to https://siteurl/mod/data/index.php?d=20&rid=9388 (ie the "view.php" part of the URL has changed to "index.php").. and this obviously breaks the links.
Steps to reproduce -
Create "course 1"
Create a Database activity in course 1 (using the predefined image gallery is fine)
Add an entry to the database
Create "course 2"
Create an URL activity on course 2
Link the URL to the database entry that sits in course 1 page eg https://siteurl/mod/data/view.php?d=102&mode=single
Run "copy course" from course 2, to create "course 3"
The link in the page on course 3 has now become https://siteurl/mod/data/index.php?d=102&mode=single
The breakage also seems to take place with URL activities
Links (to external websites) that contain "view.php" are not affected/changed by the rollover process.