def get_html_source_with_base_href(driver, page_source):
last_page = get_last_page(driver)<EOL>if '<STR_LIT>' in last_page:<EOL><INDENT>base_href_html = get_base_href_html(last_page)<EOL>return '<STR_LIT>' % (base_href_html, page_source)<EOL><DEDENT>return '<STR_LIT>'<EOL>
Combines the domain base href with the html source.
        This is needed for the page html to render correctly.