Implement url expansion