Forum domain in template

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
bzozoo
Registered User
Posts: 24
Joined: Mon Feb 11, 2019 6:33 am

Forum domain in template

Post by bzozoo » Fri Mar 22, 2019 7:32 pm

Hi
I use the {U_INDEX} tag in my template. This returns the domain name of my page : http://xy.com
But sometimes this returns with http://xy.com/?sid=1234567890.... Then I can't use it as a link, for example, because it shows a bad spell
Example I want a link http://xy.com/own.html but if this return with sit value, my link will be bad : http://xy.com/sid=1234567890own.html :(
Which is the {TAG} that returns the domain name of the page without sid allways?

{U_SITE_HOME} returns with empty value.

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51882
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Forum domain in template

Post by Brf » Fri Mar 22, 2019 8:32 pm

The sid should only show on the very first page displayed after you login, unless your board has bad cookie settings.

User avatar
Hanakin
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 913
Joined: Wed Dec 30, 2009 8:14 am
Name: Michael Miday
Contact:

Re: Forum domain in template

Post by Hanakin » Mon Mar 25, 2019 5:45 pm

maybe use twig filters try {{ U_INDEX | split('?') | first }}

Post Reply

Return to “[3.2.x] Styles Support & Discussion”