Closed rbarreca closed 2 months ago
polaris_button_to
will generate form with submit button under the hood. It's easier to use plain polaris_button
in your case:
<%= polaris_button(url: "https://shopify.dev", target: "_top") { "Authenticate with Quickbooks" } %>
I want a button to open in the _top frame (I'm navigating the user to Quickbooks to authenticate). Is there a way to do that with
polaris_button_to
?This doesn't work as it adds the target to the button not the form element:
This works but is gross: