Skip to content

Commit

Permalink
Change file name for HMTL download #401
Browse files Browse the repository at this point in the history
  • Loading branch information
geofranzi committed Feb 25, 2020
1 parent 9546169 commit e0efe08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3431,7 +3431,7 @@ public ActionResult DownloadAsHtml()
// prepare view to write it to the file
byte[] content = Encoding.ASCII.GetBytes(view.ToString());

return File(content, "application/xhtml+xml", "metadata_"+ entityId + "__" + DateTime.Today + ".htm");
return File(content, "application/xhtml+xml", entityId + "_metadata.htm");
}

return Content("no metadata html file is loaded.");
Expand Down

0 comments on commit e0efe08

Please sign in to comment.