This isn't tested but it should allow you to choose fancy or ugly URLs