fulls1z3 / ngx-meta

Dynamic page title & meta tags utility for Angular (w/server-side rendering)
MIT License
333 stars 47 forks source link

The title does not display correctly in the browser history #206

Open honey-system opened 4 years ago

honey-system commented 4 years ago

[ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [x] Support request [ ] Feature request [ ] Documentation issue or request

When switching between routers, the title is reset to the default one, and the title set in the settings is saved in the browser history. Need to save in history the title set programmatically, via this.meta.setTitle('Custom page name').

For example: after route change title appears in history like "default title | Aplication Name", but should "Custom page name | Aplication Name" ... applicationName: 'Aplication Name', defaults: { title: 'default title', description: 'Default description', ... } ...

Environment