documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Regression for 404

Open stevepiercy opened this issue 1 year ago • 5 comments

Description

See https://github.com/plone/documentation/issues/1399

We want a default 404 to look like this:

https://6.docs.plone.org/404.html

Not like this:

https://6.docs.plone.org/whoopsie

Something regressed since this was deployed.

stevepiercy avatar Jun 21 '24 10:06 stevepiercy

Indeed a whoopsie. Custom 404 isn't properly set up in Ansible. Manually fixed for now, leaving issue open until I can fix that Ansible template.

polyester avatar Jun 22 '24 13:06 polyester

Do you know when it regressed? I only noticed it because the 404 report in Matomo collected no data. I might have not set up the file correctly.

@fredvd does the 404 view require its own JavaScript snippet for Matomo to count it?

  • https://matomo.org/blog/2019/07/how-to-analyse-404-pages/
  • https://matomo.org/faq/how-to/faq_60/?

stevepiercy avatar Jun 22 '24 19:06 stevepiercy

Yes, happened when I ran ansible to put in a new redirect. June 9th, 2024.

Mea Culpa <applies ash generously on head/>

polyester avatar Jun 22 '24 19:06 polyester

@stevepiercy as the server for 'static sites' holds quite a lot of those, it will require some planning to make sure that "custom 404 pages" will work without disrupting other sites, as the current setup pulls in a snippet for all sites on error pages. That needs re-working and a bit of planning. Will get on it.

polyester avatar Jun 22 '24 19:06 polyester

Yes, happened when I ran ansible to put in a new redirect. June 9th, 2024.

That's much more recent than when we thought we configured Matomo and the documentation 404 template correctly. In fact, no 404 data has been collected ever. I think I have a fix for it, using a custom JavaScript snippet, but need to check with @fredvd.

stevepiercy avatar Jun 22 '24 20:06 stevepiercy