Closed fleshgordo closed 2 years ago
Hi Gordan,
fortunately, we don't have to pay attention to the metatags while changing routes in the frontend. The metatags are solely responsible for providing information to messengers and social media sites when creating a preview for a specific link.
When you navigate in the app, changing metatags are not needed. If you were to copy the URL, the target application will load the website and extract necessary data (without parsing and executing JS, hence the need for this starter kit).
I am currently configuring custom meta-tags for each note entry by using the starterkit. So far, I have added the metadata methods to my header.php like:
While navigating between my blogposts I can see that the site title is being updated but not the other meta-tags (twitter-image, description etc..)
I have also extended my page model for template-specific meta data (models/note.php) to no avail (i.e. the image isn't updating when switching to other posts.
Do I need to modify and rewrite all the meta-tags manually on the vue frontend inside hooks/usePage.js ? I've noticed that the site title is being changed there:
Thanks in advance!