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

update url column - add rel=noreferrer and fix attribute definition #5670

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Sep 19, 2024

WHY

fixes: Laravel-Backpack/community-forum#507

BEFORE - What was wrong? What was happening before this PR?

The url column could leak your admin panel url if developer didn't took care of adding the rel attribute to the column wrapper.

In addition, the docs stated that you could use 'target' => '_blank' in your column definition, but that was not actually working because the column was just checking the values in the wrapper.

AFTER - What is happening after this PR?

We add by default a rel="noreferrer" to the url column type and the column now checks for target, element and rel on the column definition, not only in the wrapper.

Is it a breaking change?

I think it is not.

DOCS: Laravel-Backpack/docs#600

@pxpm pxpm merged commit 9a498cd into main Sep 19, 2024
9 checks passed
@pxpm pxpm deleted the update-url-column branch September 19, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

URL column - add rel="noreferrer"
1 participant