Fixed failure to load photos when URL contains #