add new filter

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