Forum Discussion
haratsu
Oct 13, 2023Copper Contributor
DevOps Wiki: How to enable download of attachment
Hello, I do have a git based wiki in ADO with the following structure: | ---- REAGME.md
| ---- .attachments
| ---- config.xml Within README.md I want to reference config.xml in a way t...
saleha15
Jun 30, 2026Tin Contributor
Unfortunately, I don't think this is currently supported in Azure DevOps Git-based Wikis. Relative Markdown links are treated as file paths, so query parameters like ?download=true&name=config.xml get URL-encoded and become part of the filename, which is why the link fails.
From what I've seen, your options are:
- Use a standard relative link (./.attachments/config.xml), which lets users open or download the file manually depending on their browser.
- Use an absolute URL with download parameters if you specifically need to force a download—but as you mentioned, that's difficult to maintain across branches.
At the moment, there doesn't appear to be a built-in way to force downloads or specify a custom download filename using relative links in Azure DevOps Wiki Markdown. If anyone has found a branch-independent workaround, I'd be interested to hear it as well.