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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

ClassName displayed in browser


Go to End


798 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.