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

Fixes #37592 - open Documentation in new tab in generic table #10222

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

MariaAga
Copy link
Member

No description provided.

@sjha4
Copy link
Contributor

sjha4 commented Jun 26, 2024

Is this hasHelpPage flag on the Table used anywhere in any pages? I didn't see any component using it right now to test it.

@MariaAga
Copy link
Member Author

It was noticed when reviewing a pr in foreman_ansible, to test I added hasHelpPage in webpack/assets/javascripts/react_app/routes/Models/ModelsPage/index.js

@sjha4
Copy link
Contributor

sjha4 commented Jun 26, 2024

Tested that documentation in action toolbar for the table opens in a new tab with the change. Non-write Ack 👍🏼

action: {
href: customHelpURL || helpURL(),
target: '_blank',
rel: 'noopener noreferrer',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to this answer on StackOverflow, all browsers handle this automatically.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know, removed!

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