-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.14, 4.1.5
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.