Jump to content

Meta title


nabo
 Share

Recommended Posts

Hello

I discovered a very strange problem I can not how to solve...

I use this

$meta_title = $page->meta_title!="" ? $page->meta_title : $page->title;

In normal navigation everything work perfectly... but in private mode (incognito), system seems to ignore meta_title and writes the page title.

Any idea??

Link to comment
Share on other sites

I suspect that what is actually happening is that the 'normal' browser and 'incognito' mode are caching two different versions of the page, the 'normal' probably being older. Try a completely different browser and see what happens.

BTW you could also try changing your code to 

$meta_title = $page->get('meta_title|title');

which should do the same thing. (Coz that ternary is hideous and unnecessary :() This won't actually help with the current problem, but is much nicer code.

  • Like 5
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...