Strip params from canon url

This commit is contained in:
Ai Lin Chia
2017-08-18 12:33:37 +02:00
parent d4df446d75
commit d6628e55fc

@ -8714,7 +8714,7 @@ Url **XmlDoc::getCanonicalRedirUrl ( ) {
// allow for relative urls
Url *cu = getCurrentUrl();
// set base to it
m_canonicalRedirUrl.set( cu, link, linkLen );
m_canonicalRedirUrl.set(cu, link, linkLen, false, true, false);
// Detect invalid canonical URLs like <link rel="canonical" href="https://://jobs.dart.biz/search/" />
// The Url class really should have a "isValid" function...