[MGNLDAM-503] option to get url for an asset in dam Created: 20/Aug/14 Updated: 23/Aug/22 |
|
| Status: | Open |
| Project: | Magnolia DAM Module |
| Component/s: | None |
| Affects Version/s: | 2.0.2 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Neutral |
| Reporter: | Tomáš Gregovský | Assignee: | Antti Hietala |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | blocked | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Template: |
|
||||
| Acceptance criteria: |
Empty
|
||||
| Date of First Response: | |||||
| Epic Link: | Align references and links implementations | ||||
| Story Points: | 5 | ||||
| Team: | |||||
| Description |
|
Requirement: get the Use cases:
Obstacles today:
To work around the requirement I had to create new page and put there download links to my asset and then copy URLs from this page. I don't think so that this is most user friendly option :/ Only to be able copy link from "download asset" button will be enough |
| Comments |
| Comment by Mikaël Geljić [ 16/Mar/17 ] |
|
From DamDownloadServlet Javadoc:
The latter might be of interest to you tgregovsky While we're at it (cc pmundt, ejervidalo), I just realized the DamDownloadServlet is mapped to /dam, which got me curious about URI2Repo mappings... Turns out the dam one is still there (also mapped to /dam fwiw), but it will simply never be called. |
| Comment by Tomáš Gregovský [ 23/Mar/17 ] |
|
originally I just wanted to see a direct url of an asset (in dam) which I can copy paste without having to write (copy paste parts of it and build) url by myself... I can do it, but editors can't in case they need direct link to an asset. (maybe optionally only if asset is published and with prefix to public instance - so I will have full public url) But on suggestion above I am fan of third one ('/dam/foo/bar/lol.pdf') ... |
| Comment by Antti Hietala [ 23/Mar/17 ] |
|
Let's start by providing a user action to copy the relative asset path in a human-readable format. Getting an absolute public URL requires knowing the defaultBaseUrl of the relevant public instance, which might be difficult to impossible to resolve in a multisite setup that has multiple public instances and various domains. The author who wants to copy the asset URL is typically working on an author instance that has a different defaultBaseUrl. Next steps:
|