Fixed a bug where flattening topics didn't reference the right hrefs.