Hello
I'm using apex_page.get_url to generate a URL that calls an application process that downloads a file. This URL will be used in a link in a popup page, which should open the link in a new browser tab. The generated URL looks like this:
<a target="_blank" href="#action$a-dialog-close?tmpl=MODAL_DIALOG&target=f?p=123:0:12345:APPLICATION_PROCESS=download_file...;isModal=true">Download</a>
However, despite the target="_blank", the current browser tab is replaced by the downloaded file, instead of opening a new tab. I guess it is because of the value #action$a-dialog-close specified in the href attribute.
The exact same functionality works perfectly in a normal page.
Any way around this?
Thanks
Luis