Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

ClassName displayed in browser


Reply


220 Views

Avatar
igorbi

Community Member, 3 Posts

18 October 2013 at 1:52am

During some testing I've came across:

Action 'XXXXXXXX' isn't available on class YYYYYYY.

It actually works fine, but I'm not ok with class name disclosure in browser. Is there any logic to disable it, for instance to display this message only on dev environments, and when env is set to live just to omit class name. This would be acceptable.

Even better, is there a way to redirect that request (using SS logic) to ErrorPage (404), no just a text in browser.

Since this is SS core functionality, I'm not happy to update code in framework folder (like to keep core files as is).

Is there some cool solution for this situation?

Thanks.