Summary
By default, clicking on an electronic document will open the document view. The document view contains a Download Electronic File toolbar button that then loads ElectronicFile.aspx and allows a user to download the electronic file. WebLink can be customized so that clicking an electronic document will no longer load the document view, but will automatically redirect the user to download the electronic file.
Resolution
This customization includes two modified files:
Important This customization requires the WebLink hotfix discussed in the following Laserfiche Knowledge Base article:
1011128 WebLink Does Not Support Directly Linking to the Download Electronic File Page (ElectronicFile.aspx).
To customize WebLink to automatically redirect to ElectronicFile.aspx when an electronic document is opened
Note: Be aware that this customization will prevent users from viewing electronic documents from the document view window.
More Information
This customization involved adding the following lines at the end of the "If Not Page.IsPostBack" block of the "Page_Load" subroutine in DocView.aspx.vb.
If TheElectFileLink.Visible Then
Response.Redirect("ElectronicFile.aspx?docid=" + DocID)
End If