removed unused function
use rex_url
rex_context can be used in frontend