Fixed pagination link error when <DIRECT_TEMPLATE_NAME>_SAVE_AS used

Pagination links are broken when {DIRECT_TEMPLATE_NAME}_SAVE_AS setting is used. For example, setting INDEX_SAVE_AS to 'blog/index.html' will result in pagination links pointing to index2.html, index3.html, .... Instead they should point to blog/index2.html, blog/index3.html, ....

The unit test for this scenario was passing as it was testing for an incorrect 'page_name' variable being set.