add filter that allows one to set custom end points, like endpoints in the current language when having a multilingual site