Replies: 1 comment
|
I'd use |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
For a report section of my site, I have a link that references a route to an action that calls renderView() where a template is specified. In that template file is the code to generate a PDF (or Excel file). Previous code used an onclick JS call to a JS function that used a window.open(url) call. This opens the template in a new browser tab. Now I'm wanting to use a route in the link (using urlFor() to render the path) and the action call the PDF generating template file, but in a new tab, as before. I'm not seeing a Wheels way to do that. I would think the renderView would have a target attribute (target="_blank") to allow this, but it doesn't work nor is that documented anywhere.
I also tried using redirectTo which says it allows passing in params but adding this attribute (params='target="_blank"') to redirectTo() did nothing. Just opens the path template replacing the existing path.
My objective is to list some links to trigger generating reports that open in a NEW tab, not the existing tab.
How do others get around this?
All reactions