stable

Clone or download

Read-only

Close request #35077 doc #xxx cross-references must redirect to the new UI

Given a document reference like doc #xxx, it must redirect to the new UI as much as possible. Onlyoffice links must be retrieve if necessary. How to test ----------- * Have a doc #xxx reference - If document is a folder => New UI - If document is an embedded => New UI - If document is link, wiki or empty => Direct link as before - If document is an uploaded file => Direct link to download (as before) or Onlyoffice link if available Note: The feature flag to have old UI by default is volontary not taken into account here. Change-Id: I47914ea25f6bdd7749abe0d3309d9cb20bbf1b85

Modified Files

Name
R plugins/docman/include/REST/v1/OpenItemHref.php Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationVisitor.php +1 −0 Go to diff View file
M plugins/docman/include/REST/v1/Search/FilePropertiesVisitor.php +1 −1 Go to diff View file
M plugins/docman/include/Reference/ReferenceFactory.php +13 −6 Go to diff View file
M plugins/docman/include/docmanPlugin.php +10 −5 Go to diff View file
A plugins/document/include/Reference/ReferenceURLBuilder.php +120 −0 Go to diff View file
A plugins/document/tests/unit/Reference/ReferenceURLBuilderTest.php +166 −0 Go to diff View file
M plugins/onlyoffice/include/onlyofficePlugin.php +1 −1 Go to diff View file