diff --git a/resources/views/components/wowhead.blade.php b/resources/views/components/wowhead.blade.php index 2f01f4b..a059a5f 100644 --- a/resources/views/components/wowhead.blade.php +++ b/resources/views/components/wowhead.blade.php @@ -1,4 +1,4 @@ -@props(['id']) -merge([ 'class' => 'text-blue-600', 'href' => 'https://tbc.wowhead.com/item=' . $id, 'target' => '_blank' ]) }}> +@props(['id', 'type' => 'item']) +merge([ 'class' => 'text-blue-600', 'href' => sprintf('https://tbc.wowhead.com/%s=%d', $type, $id), 'target' => '_blank' ]) }}>