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

Adds external_link_to helper to navigate outside of a turbo-frame #618

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Schwad
Copy link

@Schwad Schwad commented Apr 16, 2024

SEEKING FEEDBACK:

I feel that it would be a clearer API for newer users to have an explicit external_link_to method instead of defining link_to "..", target: "_top" every time they want to link outside of a turbo-frame.

If this is accepted by maintainers I will add tests and can tweak the documentation if needed.

SEEKING FEEDBACK:

I feel that it would be a clearer API for newer users to have an
explicit `external_link_to` method instead of defining `link_to "..",
target: "_top"` every time they want to link outside of a turbo-frame.

If this is accepted by maintainers I will add tests and can tweak the
documentation if needed.
@meneerprins
Copy link

In my mind external_link_to would mean a link_to with target: '_blank' since it links to an 'external' page, also isn't it supposed to be data-turbo-frame="_top" instead of target="_top"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants