Fix a slight bug in action URL generation.