aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/mod-package-version-details.cxx2
-rw-r--r--mod/page.cxx11
2 files changed, 8 insertions, 5 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx
index 80a87ef..ccd81c5 100644
--- a/mod/mod-package-version-details.cxx
+++ b/mod/mod-package-version-details.cxx
@@ -243,7 +243,7 @@ handle (request& rq, response& rs)
}
else if (p->internal ())
{
- path u (root / path (ename));
+ dir_path u (root / dir_path (ename));
s << A(HREF=u) << dname << ~A;
if (dcon)
diff --git a/mod/page.cxx b/mod/page.cxx
index 2ebbe7b..79b5da5 100644
--- a/mod/page.cxx
+++ b/mod/page.cxx
@@ -27,12 +27,14 @@ namespace brep
{
// CSS_LINKS
//
+ static const dir_path css_path ("@");
+
void CSS_LINKS::
operator() (serializer& s) const
{
- static const path css ("@");
-
- s << *LINK(REL="stylesheet", TYPE="text/css", HREF=root_ / css / path_);
+ s << *LINK(REL="stylesheet",
+ TYPE="text/css",
+ HREF=root_ / css_path / path_);
}
// DIV_HEADER
@@ -146,7 +148,8 @@ namespace brep
else
{
assert (root_ != nullptr);
- s << A(HREF=*root_ / path (mime_url_encode (*package_)) / path (version_))
+ s << A(HREF=*root_ / dir_path (mime_url_encode (*package_)) /
+ path (version_))
<< version_
<< ~A;
}