Switch to side-by-side view

--- a/Allura/allura/tasks/index_tasks.py
+++ b/Allura/allura/tasks/index_tasks.py
@@ -55,8 +55,10 @@
                 if update_refs:
                     if isinstance(artifact, M.Snapshot):
                         continue
+                    # Find shortlinks in the raw text, not the escaped html
+                    # created by the `solarize()`.
                     ref.references = [
-                        link.ref_id for link in find_shortlinks(s['text']) ]
+                        link.ref_id for link in find_shortlinks(artifact.index().get('text', ''))]
             except Exception:
                 log.error('Error indexing artifact %s', ref._id)
                 exceptions.append(sys.exc_info())