pimcore - SEO Document Editor extends "Title" every time I edit it -


for example, seo document editor displays "welcome | pimcore demo", while document contains "welcome" in "settings" / "name & metadata" / "title".

this seems because of

$this->headtitle()->append("pimcore demo"); 

in layout file.

however, if edit title in seo document editor, "welcome | pimcore demo" put in title field, after appending "pimcore demo" leads title "welcome | pimcore demo | pimcore demo".

the title extended every time edit via seo document editor, if don't change anything.

this problem caused way seo editor handles detecting page's title - it's rendering webpage , taking full title - including parts added in layout. full title alterations saved document's title property. i'm afraid there's no easy way fixing without breaking anything.

you can try:

  1. insted of rendering webpage it's title, title property. remove try block: https://github.com/pimcore/pimcore/blob/4d8c3177bd6504a930ad87da2f55c9142d3c566f/pimcore/modules/admin/controllers/documentcontroller.php#l994

unfortunately, break seoeditor's capability of counting title's length.

or if can live - remove append layout.

fixing need changes in both document controller , extjs code of seoeditor. try creating issue on pimcore's github bug, or better - if manage fix - create pull request.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -