Add flexibility to component_path replacement for constructing the url