added option to discard original URL key