facebook og:url

I not sure if I really understand where the meta tag og:url should point to. I thing it should point to the current page.



So I have been using the my_changes with a meta.post.tpl with the following in it. I guessing there should be a simple piece of code I can enter for the og:url to point to the current page. If I am wrong please explain.



{strip}
{if !$smarty.foreach.bkt.first}{$i.title}{if !$smarty.foreach.bkt.last} :: {/if}{/if}
{/foreach}
{if !$skip_page_title}{if $breadcrumbs|count > 1} - {/if}{$location_data.page_title}{/if}
{/if}" />
{/strip}








thanks to a wonderful group here for any help,



David DeWitt



That should do it.

StellarBytes,



Sorry to say that that only points to the domain. It sure looked good to me though.



Thanks

Is this V2, 3 or 4?



Try also:-

{$config.current_url|fn_url}

Or for SEO enabled URLs:-

{$seo_url.href}

I've used:



{assign var=“url” value=“$config.current_location/$config.current_url”|fn_url}





or



$config.current_location/$current_url"|fn_url}">

After trying each suggestion and getting part of the answer each time. I work the suggestions to gether to make a solution. There still maybe single variable to call. But this works.







Thanks for the help,

Dave

@dsdewitt - I'd like to try your code on my site. Where would I add that code?

Please use






in the following file:



design\themes\YOUR_THEME\templates\addons\my_changes\hooks\index\meta.post.tpl