Add special handling to make internal links work within the iframe

Test Plan:
- Make an internal link and make sure it scrolls to it in the iframe only. If on KA it should not prompt the user.

Auditors: john, pamela