Uncommenting code block which allows absolute urls to be skipped over

Having trouble getting the 'flatten' option to be respected. Looks like this code block was commented out in an earlier commit.