Skip to content

Kirby 6.0.0

$field->permalinksToUrls()

Parses the field value as DOM and replaces any permalinks in href/src attributes with the regular url

$field->permalinksToUrls(): Field

Return type

Kirby\Content\Field

This method does not modify the existing $field object but returns a new object with the changes applied. Learn more →

Warning

This method is still experimental! You can use it to solve potential problems with permalinks already, but it might change in the future.