fixed demo page to generate the pages for the correct url