sorry if this has been asked before 1000+ times, i can't seem to find an answer by searching.
how do i print the current page URL on my page? i'm creating social media links and need the current page URL as part of the code...
[SOLVED] Current page URL?
[SOLVED] Current page URL?
Last edited by admsh on Sat May 07, 2011 10:25 pm, edited 1 time in total.
Re: Current page URL?
As far as I know there's no way to get the full url.
Read CG's post below
But, what you can try is combining {root_url} with {$page_alias}, like this:
(for example Products)
Hope this helps
Read CG's post below

But, what you can try is combining {root_url} with {$page_alias}, like this:
Not sure if this keeps working on pages created by modules.{root_url}/{$page_alias}
(for example Products)
Hope this helps
Make your community a better place!
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Current page URL?
The CGExtensions module has a plugin for this. If you have a recent version of CGExtensions installed it's something like
{get_current_url}
The module help specifies how to use it.
{get_current_url}
The module help specifies how to use it.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Current page URL?
THANK YOU!!!
works like a charm.
works like a charm.