changed directory url in generator
extended pattern for urls