Project

General

Profile

Feature #21941

Updated by Peter Amstutz 12 days ago

* Add context menu option on collection files to get a link identifier using the PDH instead of UUID.    Should say something like "link to latest version" and "link to this exact version (immutable)" 
 * Adjust links (both for UUID and PDH) so they go directly to keep-web. 

 The original reason for copy-to-clipboard to provide a workbench-based link (e.g. @?redirectToPreview=...@) was that at the time, keep-web didn't support redirecting to workbench login if the user didn't have a API token cookie for the collection.    Keep-web now knows how to redirect the browser to Workbench if necessary to log in, and while this uses the same @?redirectToPreview=@ mechanism that copy-to-clipboard currently uses, it is better to treat it as an internal implementation detail and avoid exposing it to the user feature for several a few reasons: 

 * If the user uses "copy to clipboard" and gets a redirect takes the link and wants to use it in something like @curl@, that won't work, because it requires loading and executing the entire Workbench web app 
 * Similarly, even in the browser, the redirect link it requires loading and executing the web app just to process the redirect, this adds several seconds.    If the user already has a cookie, it will load the resource immediately. seconds 
 * You get different links if you visit the link and copy from the The URL bar vs using "copy to clipboard" which feels bad, where the links should be user ultimately ends up is different than the same since one they refer to the same resource. copied, which goes against good web hygiene 

Back