Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Feb 26, 2025
1 parent 8b1624f commit 08260cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Fieldtypes/Bard.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ class Bard extends Replicator
];

protected $categories = ['text', 'structured'];

protected $keywords = ['rich', 'richtext', 'rich text', 'editor', 'wysiwg', 'builder', 'page builder', 'gutenberg', 'content'];

protected $rules = [];

protected function configFieldItems(): array
Expand Down Expand Up @@ -713,7 +715,9 @@ private function getLinkDataForUrl($url)

switch ($type) {
case 'entry':
if ($entry = Entry::find($id)) {
$actualId = str($id)->before('#')->before('?')->before('&');

if ($entry = Entry::find($actualId->toString())) {
$data = [
'title' => $entry->get('title'),
'permalink' => $entry->absoluteUrl(),
Expand Down

0 comments on commit 08260cd

Please sign in to comment.