nabo Posted August 3, 2017 Share Posted August 3, 2017 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 More sharing options...
DaveP Posted August 3, 2017 Share Posted August 3, 2017 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. 5 Link to comment Share on other sites More sharing options...
nabo Posted August 4, 2017 Author Share Posted August 4, 2017 Sorry... it was a problem with field access!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now