Navigating away from a view with update-meta overwrites doesn't return to default values
See original GitHub issueIf you overwrite default meta values from within a view; navigating off of that view to one without any update-meta does not return the page meta values to their original values.
For example, if the default title tag in my template is set to:
<title>My Lovely Company</title>
… and I overwrite that title from within the /contact view:
<update-title title="My Lovely Company | Contact us"></update-title>
When I navigate away from the /contact view to a view without any overwrites, the DOM title remains:
<title>My Lovely Company | Contact us</title>
Is this intended behaviour? In which case, it requires that all views that can make do with the default meta data have their own update-meta overwrites. Subsequent app wide changes to the default meta data will then need to be updated in all the ‘vanilla’ views also.
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
How to overwrite a default value in Views - django
Each view needs to set its own unique default values for several of the model's fields. For example in View 1, the models'...
Read more >Default values for fields? · Issue #58 · laravel/nova ... - GitHub
Just for completeness, setting the default value via the 'value' attribute and withMeta() method not only override existing values (including in ...
Read more >'init' event not always firing on Lightning component used as ...
I was using an Aura component to override the New button, which in turn ... container might simply update the pageReference attribute value...
Read more >The activity lifecycle | Android Developers
By default, the system uses the Bundle instance state to save information about each View object in your activity layout (such as the...
Read more >The Django admin site
It reads metadata from your models to provide a quick, model-centric interface where trusted users can manage content on your site. The admin's...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is off topic now, but @Eduardo-Julio - you might want to take a look at https://prerender.io/ for making sure bots actually get a rendered version of your page.
Thanks for your help!