summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web-view-schemes/normal.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/web-view-schemes/normal.c b/src/web-view-schemes/normal.c
index c4d42b8..3a2313e 100644
--- a/src/web-view-schemes/normal.c
+++ b/src/web-view-schemes/normal.c
@@ -87,8 +87,16 @@ static gchar *
display_uri(MqWebView G_GNUC_UNUSED *web_view,
MqWebViewScheme G_GNUC_UNUSED *scheme, const gchar *uri)
{
+ gchar *rw_uri;
+ gchar *query;
+
if (g_str_has_prefix(uri, "mq-about:")) {
- return g_strconcat("about:", uri + strlen("mq-about:"), NULL);
+ rw_uri = g_strconcat("about:", uri + strlen("mq-about:"), NULL);
+ query = strchr(rw_uri, '?');
+ if (query) {
+ query[0] = '\0';
+ }
+ return rw_uri;
} else {
return g_strdup(uri);
}