My gallery page is generating the wrong links to attachment pages, and the new links make a redirect loop.
I've been using the latest version of WordPress and a Toolbox child theme, but even plain Toolbox has the trouble. Even with plugins disabled, and even with my .htaccess (which was full of extra gunk) renamed to generate a new one.
The links it generates look like this:
This, on the other hand, works, but I can't figure out where the #main is coming from and I can't remove it from the dialog box, either (it seems to revert)
I haven't dug through the code yet, but since it's having trouble on a fairly vanilla-esque install, I thought I'd check here in case others are having issues, too.