Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions > redirect_to new tab #3300

Open
pjmuller opened this issue Oct 2, 2024 · 0 comments
Open

actions > redirect_to new tab #3300

pjmuller opened this issue Oct 2, 2024 · 0 comments

Comments

@pjmuller
Copy link

pjmuller commented Oct 2, 2024

Feature

We have actions where we want to open a resulting URL in a new tab however the current https://docs.avohq.io/3.0/actions.html#redirect_to doesn't listen for that open.

Can we create add this option or add a new directive?

class Avo::Actions::Blabla < Avo::BaseAction
  def handle(**args)
    redirect_to url, target: "_blank" 
  end

Current workarounds

let them click on a secondary link, but is not very user friendly

class Avo::Actions::Blabla < Avo::BaseAction
  def handle(**args)
    succeed "<a href='#{url}' target='_blank'>Autologin</a>".html_safe_desanitized
  end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant