my eye

Check for aside before linkifying

Committed 5bfcd0

--- a/web/framework/__init__.py
+++ b/web/framework/__init__.py

         ):
             handling_app = tx.request.controller.__web__[2]
             if getattr(handling_app, "parent_app", None):
-                dom = webagt.parse(tx.response.body)
 
                 def linkify(link):
                     if link.startswith(
                         link = f"/{handling_app.prefix}{link}"
                     return link
 
+                dom = webagt.parse(tx.response.body)
                 dom.doc.rewrite_links(linkify)
                 tx.response.body._body = dom.html
+                if "aside" in tx.response.body:
+                    aside_dom = webagt.parse(tx.response.body["aside"])
+                    aside_dom.doc.rewrite_links(linkify)
+                    tx.response.body.aside = aside_dom.html
 
         chromeless = str(tx.request.headers.get("X-Chromeless", "0")) == "1"
         naked = getattr(tx.response, "naked", False)