fixing issue with href=# redirects when embedded