support general short URLs, fix #162