Skip to content

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