move href generation to onComponentTag