Skip to content

Commit

Permalink
Fix for external links
Browse files Browse the repository at this point in the history
  • Loading branch information
martyf committed May 15, 2024
1 parent b69eeb4 commit 0b6c18c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Support/Sitemapamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ protected function loadEntries(): \Illuminate\Support\Collection
}

// are we an external redirect?
if($entry->blueprint()->handle() === 'link' && isset($entry->redirect) && URL::isExternal($entry->redirect)) {
// note the "dirty" trick to make the redirect a string (v4/5 has the ArrayableLink)
if($entry->blueprint()->handle() === 'link' && isset($entry->redirect) && URL::isExternal('' . $entry->redirect)) {
return false;
}

Expand Down

0 comments on commit 0b6c18c

Please sign in to comment.