'Display page' button should not be displayed for site templates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Unassigned | ||
19.10 |
Fix Released
|
High
|
Unassigned |
Bug Description
An error message is displayed when a site admin user tries to display a site template (Profile page, Dashboard page and group homepage templates)
Error message:
[WAR] 9f (lib/web.php:3490) redirect() should be called with either /[something] for local redirects or http[something] for absolute redirects
Call stack (most recent first):
redirect("") at /home/ceciliavg
To reproduce:
-go to Configure site -> Pages & Collections
-click on any of these 3 site templates: Profile page, Dashboard page or group homepage templates
the page is displayed in view mode
- Click on the 'Display page' button from the top right floating menu
Expected result: The templates are not supposed to be shown in display mode. The 'Display page' button should not even be present for these pages
Actual result: The 'Display page' button is displayed and clicking on it redirects to a page with an error message
no longer affects: | mahara/20.04 |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/10609