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.

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

thanks to a wonderful group here for any help,

David DeWitt

That should do it.


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


Is this V2, 3 or 4?

Try also:-


Or for SEO enabled URLs:-


I've used:

{assign var=“url” value=“$config.current_location/$config.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,


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

Please use

in the following file: