aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-10-30 12:53:01 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-10-30 12:53:14 +0300
commit018603c5529117b993066f4f3a0f45f48f92e801 (patch)
treeeb74ea95c42f545c662352f6748a09d173acdded /mod
parentba9ed2129dc2dd04406f718e94d00236441c7692 (diff)
Remove URL fragment for repository links
Diffstat (limited to 'mod')
-rw-r--r--mod/mod-repository-details.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/mod-repository-details.cxx b/mod/mod-repository-details.cxx
index d68a16e..d3f145d 100644
--- a/mod/mod-repository-details.cxx
+++ b/mod/mod-repository-details.cxx
@@ -108,8 +108,13 @@ handle (request& rq, response& rs)
if (r.summary)
s << H2 << *r.summary << ~H2;
+ // Cleanup the URL fragment, if present.
+ //
+ repository_url u (r.location.url ());
+ u.fragment = nullopt;
+
s << P
- << A(HREF=r.location.string ()) << r.location << ~A << *BR;
+ << A(HREF=u.string ()) << r.location << ~A << *BR;
if (r.email)
{