Fixed octothorpes for page ids and fixed bug where popup wasn't working, had to deal with leading slash in href