Cutting the end of the baseurl resource is now ok. Warning: This functionality from the helper will disappear after all will be handled as angular routes.