diff --git a/dvc/render/image.py b/dvc/render/image.py
index 8acbd7d8d9..60ba45a39b 100644
--- a/dvc/render/image.py
+++ b/dvc/render/image.py
@@ -30,7 +30,6 @@ def _write_image(
img_path = os.path.join(
static, f"{revision}_{filename.replace(os.sep, '_')}"
)
- rel_img_path = relpath(img_path, page_dir_path)
with open(img_path, "wb") as fd:
fd.write(image_data)
return """
@@ -38,7 +37,7 @@ def _write_image(
{title}
""".format(
- title=revision, src=rel_img_path
+ title=revision, src=(relpath(img_path, page_dir_path))
)
def _convert(self, path: "StrPath"):
diff --git a/dvc/render/vega.py b/dvc/render/vega.py
index d8522aae94..7e346f9f14 100644
--- a/dvc/render/vega.py
+++ b/dvc/render/vega.py
@@ -28,7 +28,7 @@ class PlotDataStructureError(DvcException):
def __init__(self):
super().__init__(
"Plot data extraction failed. Please see "
- "https://man.dvc.org/plot for supported data formats."
+ "https://man.dvc.org/plots for supported data formats."
)