zdcloud Posted April 13, 2023 Share Posted April 13, 2023 Hello friends, what is the variables that gets the current page URL? 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted April 14, 2023 Share Posted April 14, 2023 https://developers.whmcs.com/themes/variables/ 0 Quote Link to comment Share on other sites More sharing options...
gsina Posted September 12, 2023 Share Posted September 12, 2023 (edited) Hello @zdcloud use the below code in your .tpl where you want to get the current page URL {$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI} Hope it helps. God bless You in Christ Jesus! Edited September 12, 2023 by gsina Typo 0 Quote Link to comment Share on other sites More sharing options...
JCG Posted January 31 Share Posted January 31 Depending on what you want to do, these are options: {$currentpagelinkback} or {$smarty.server.PHP_SELF} or {$smarty.server.REQUEST_URI} For example, if adding it to the translate link, using {$smarty.server.REQUEST_URI} will create a loop for search engines, while {$smarty.server.PHP_SELF} does not. Play with these and see what works best for you. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.