Discourse werkt/laadt niet op browsers van spelcomputers?

Discourse has two ways of detecting “unsupported browsers”, browsers that do not implement all the APIs Discourse needs to function correctly.

The first method is implemented in JavaScript and lets the browser decide when it is not able to render the page and automatically falls back to the static HTML view. This should have been the case, but there is some particularity (that is still unknown to me) of the game consoles browsers that fails to execute this code and thus a blank page is rendered.

The second method runs on the server side, was specifically implemented for these situations and forces the browser to render the static HTML view when it detects some user agents. This method uses a hidden site setting that you can update via the Rails console.

I think this will solve your problem. To start the console, SSH to your server and run:

cd /var/discourse
./launcher enter app
rails c

To update the hidden site setting type:

SiteSetting.browser_update_user_agents = "#{SiteSetting.browser_update_user_agents}|Xbox|PlayStation"
5 likes