question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Navigating away from a view with update-meta overwrites doesn't return to default values

See original GitHub issue

If 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:closed
  • Created 7 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
jonnykatescommented, Jul 4, 2017

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.

1reaction
Eduardo-Juliocommented, Jul 4, 2017

Thanks for your help!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found