I'm having trouble getting the v-btn
to download an XML
file instead of opening it in the browser.
<v-btn :disabled="!exportUrl" block x-large height="100" color="primary" :href="exportUrl" download>
<v-icon left>
mdi-download
</v-icon>
Download
</v-btn>
I believe it should prompt for download, not open in a new tab. What could be causing this issue?
EDIT
The URL is
http://127.0.0.1:8000/media/4e01d486-ee75-42bc-b695-8b365910ff3e.xml
EDIT 2
The rendered html
is shown below:
<a data-v-51b210ff="" href="http://127.0.0.1:8000/media/10d4a7ad-399d-4003-8841-17eb98769ad9.xml" class="v-btn v-btn--block v-btn--is-elevated v-btn--has-bg theme--light v-size--x-large primary" style="height: 100px;" download=""><span class="v-btn__content"><i data-v-51b210ff="" aria-hidden="true" class="v-icon notranslate v-icon--left mdi mdi-download theme--light"></i> Download </span></a>