From 018603c5529117b993066f4f3a0f45f48f92e801 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 30 Oct 2018 12:53:01 +0300 Subject: Remove URL fragment for repository links --- mod/mod-repository-details.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mod') 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) { -- cgit v1.1