diff --git a/sigal/plugins/media_page.py b/sigal/plugins/media_page.py
index <HASH>..<HASH> 100644
--- a/sigal/plugins/media_page.py
+++ b/sigal/plugins/media_page.py
@@ -63,7 +63,7 @@ class PageWriter(Writer):
             'sigal_link': sigal_link,
             'theme': {'name': os.path.basename(self.theme),
                       'url': url_from_path(os.path.relpath(self.theme_path,
-                                                           file_path))},
+                                                           album.dst_path))},
         })
 
         output_file = "%s.html" % file_path
Fix theme.url relative paths in media page plugin