stable

Clone or download

Read-only

request #13949 Legacy notification link do not properly redirect user

How to reproduce: Make sure your user preference is plugin_docman_display_new_ui_<project_id> not set. Forge an url and access to plugins/docman/?group_id=XXXX&id=YYYY - if param "id" is your root folder, you should be redirected on root_homepage - else you should be redirected in preview of given item This kind of url are used by notifications, when user click on a legacy notification, he should be properly redirected, that means we have the same behavior and user preferences are ignored here. We will always redirect user on "new" ui. Change-Id: I7fda67858725c98fa91905b521eba4daf1d9cc29

Modified Files

Name
M plugins/docman/include/DocmanLegacyController.php +9 −2 Go to diff View file
M plugins/docman/include/ExternalLinks/DocmanHTTPControllerProxy.php +16 −2 Go to diff View file
M plugins/docman/include/ExternalLinks/ExternalLinkRedirector.php +46 −11 Go to diff View file
M plugins/docman/include/docmanPlugin.php +8 −6 Go to diff View file
M plugins/docman/phpunit/ExternalLinks/ExternalLinkRedirectorTest.php +73 −5 Go to diff View file