diff --git a/src/url.cpp b/src/url.cpp index c97dc62..205dfba 100644 --- a/src/url.cpp +++ b/src/url.cpp @@ -111,12 +111,14 @@ const void init_replacements() Json::Value &config = configfile.get_json(); if (config["replace"].isNull()) { - const std::array replace_array = + const std::array replace_array = {{ { "[\\?&]utm_[^&]+", "" }, // Google { "[\\?&]wt_?[^&]+", "" }, // Twitter? { "[\\?&]__twitter_impression=[^&]+", "" }, // Twitter? - { "//amp\\.", "//" } // AMP + { "//amp\\.", "//" }, // AMP + { "/amp/", "" }, // AMP + { "[\\?&]service=amp", "" } // AMP }}; for (const replace_pair &pair : replace_array)