Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [iplay] how to insert rel="canonical" link with current URL

Quote Reply
Re: [iplay] how to insert rel="canonical" link with current URL In reply to
Hi,

You should be able to do that with a new function:

get_current_detailed_url
Code:
sub {
return $CFG->{build_detail_url} . "/" . $DB->table("Links")->detailed_url($_[0]);
}

Then call in detailed.html with <%get_current_detailed_url($ID)%>

Be sure to check if <%detailed_url%> doesn't already exist in detailed.html, as I have a sneaky feeling it does (so no point re-creating it, as it just adds more work for the server Whistle)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread how to insert rel="canonical" link with current URL iplay 10902 Jul 26, 2015, 1:37 AM
Thread Re: [iplay] how to insert rel="canonical" link with current URL
Andy 10717 Jul 26, 2015, 11:48 PM
Thread Re: [Andy] how to insert rel="canonical" link with current URL
iplay 10721 Jul 27, 2015, 3:22 AM
Thread Re: [iplay] how to insert rel="canonical" link with current URL
Andy 10711 Jul 27, 2015, 3:28 AM
Thread Re: [Andy] how to insert rel="canonical" link with current URL
iplay 10702 Jul 27, 2015, 3:58 AM
Thread Re: [iplay] how to insert rel="canonical" link with current URL
iplay 10700 Jul 27, 2015, 4:01 AM
Thread Re: [iplay] how to insert rel="canonical" link with current URL
Andy 10691 Jul 27, 2015, 5:36 AM
Thread Re: [Andy] how to insert rel="canonical" link with current URL
iplay 8975 Jan 11, 2018, 7:46 PM
Thread Re: [iplay] how to insert rel="canonical" link with current URL
Andy 8968 Jan 11, 2018, 11:18 PM
Post Re: [Andy] how to insert rel="canonical" link with current URL
iplay 8931 Jan 14, 2018, 12:56 AM