Add additional backend URIs. /images is used by manifest.json, /favicon.ico is used by browsers to set favicons, but some bug out for bookmarks if this isn't route excepted, /apple-touch-icon.png is the default iOS/iPad file for specifying icons, /browserconfig.xml is used by Windows for metro tiles for added pages, /robots.txt is used by bots to determine if access is permitted to pages. Some bots that use Selenium break when the routing isn't exempt.

This commit is contained in:
Ryle 2022-12-26 01:36:13 +00:00
parent f635d71350
commit b314bb7af1
No known key found for this signature in database
GPG key ID: FAE00B2FEBA78538

View file

@ -131,6 +131,11 @@ const configuration: Configuration = {
'/socket',
'/static',
'/unsubscribe',
'/images',
'/favicon.ico',
'/apple-touch-icon.png',
'/browserconfig.xml',
'/robots.txt',
];
if (backendRoutes.some(path => pathname.startsWith(path)) || pathname.endsWith('/embed')) {