def main_component_path(component)
      current_params = try(:params) || {}
      EngineRouter.main_proxy(component).root_path(locale: current_params[:locale])
    end
def main_component_path(component)
      current_params = try(:params) || {}
      EngineRouter.main_proxy(component).root_path(locale: current_params[:locale])
    end
Returns the defined root path for a given component.

 component - the Component we want to find the root path for.

 Returns a relative url.