URLs · Query strings
Query string contains a question mark
This page links to itself with a second question mark in the query string, a malformed address usually caused by a template bug.
How this page is built
The link below points to this page with ?page=2?ref=home added to its address. The server ignores the query string and returns this same page.
See this page with a broken query string.
The second question mark should have been an ampersand. Everything after the first question mark is treated as one long query string.
The canonical on both versions points to this page's address without the query string.
Why it matters
A URL can only have one question mark, which marks the start of the query string. A second one usually means a template added parameters to an address that already had some, without checking.
The result is a malformed address that servers and analytics tools read in different ways, and that can create duplicate or broken URLs.
How to check it
Search a crawl export of every URL for addresses that contain more than one question mark. Look at the template or script that builds the links to find where parameters are added.
How to fix it
Fix the code that builds the link so it adds a question mark only if there is none already, and an ampersand otherwise. Most languages have URL helpers that do this correctly.