bencarr / statamic-hyperlink

Hyperlink is a Statamic addon that expands the default Link fieldtype and allows you to store link text and target options alongside the link destination.
https://statamic.com/addons/bencarr/hyperlink
3 stars 1 forks source link

I can not get the address of the term ! #6

Closed yaser2490 closed 1 year ago

yaser2490 commented 1 year ago

in +url: "term::product-categories::digitals" i can not get the address.

How should I get the full address? I am in Blade page.

The addresses of the entries are correct But there is this problem in term!

BenCarr\Hyperlink\Helpers\HyperlinkData {#2396 ▼ // app\Http\Controllers\PageController.php:23 +url: "term::product-categories::digitals" +target: "_blank" +email: null +phone: null +entry: null +asset: null +term: Statamic\Taxonomies\LocalizedTerm {#2372 ▶}

attributes: Illuminate\View\ComponentAttributeBag {#2398 ▶}

+type: "term" +link: "term::product-categories::digitals" +text: "#" +newWindow: true

bencarr commented 1 year ago

Hi Yaser! Thanks for reporting. I just released v1.1.2 with a fix for the term URLs.

Terms in most of my Statamic sites have been collection-specific, so I got used to generating collection-specific URLs manually. I added a note to the README about collection-specific term URLs, and fixed the behavior so Term links now properly point to the global term URL.