LycheeOrg / Lychee-front

JS implementation of Lychee frontend

Home Page:https://lycheeorg.github.io/

Repository from Github https://github.comLycheeOrg/Lychee-frontRepository from Github https://github.comLycheeOrg/Lychee-front

[Enhancement] SEO optimization 2/3 - Set `<meta name="robots" content="noindex">` for 404 responses

nagmat84 opened this issue · comments

Currently, our web frontend is not very SEO friendly. It is entirely written in JS, which is fine for modern web crawlers, but it violates some best practices.

Enhancement: If the frontend attempts to load an album or photo which does not exist, the frontend currently only shows the 404 response from the backend as an error message to the user. On top, the JS code should also add a <meta name="robots" content="noindex"> to error pages using JavaScript.

See: https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics#avoid-soft-404s.