fabianmichael / kirby-meta

All-in-one solution to all of your SEO/OpenGraph/JSON-LD needs. 👀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Robots Visibility needs page reload

Daandelange opened this issue · comments

Hello,
I just ran into a tiny UI glitch : When changing the search engine indexing status of a page, the robots preview on the right needs a page reload to reflect the new value.

Unfortunately, this one is rather tricky to solve, since it requires live-monitoring of the robot fields + an XHR request + a custom API endppoint because the final evaluation of whether a page is indexible has to happen on the server. I’m happy to improve the plugin in this regard, but it will take some time.

A quicker but dirtier fix could be to just reload the panel page if the field value changed ?
Thanks for investigating, no time worries, I'm fully aware that this is a "perfectionism" bug while you're probably still focused on the foundation.

Other previews have live-update as well, so I think this should behave the same and should give instant feedback on the affect of certain options for page visibility. And in addition to that, it would be nice if the widget would show the reason, since the plugin has many hooks that could possibly alter the visibility status of page independently from the chosen panel options.