aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
{