Two urls with a different query string may refer to two different pages
so keep them both.
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
$entry->setUrl($url);
break;
case ['fragment']:
$entry->setUrl($url);
break;
case ['fragment']:
- case ['query']:
- case ['fragment', 'query']:
- 'no query string in fetched content' => [
- 'https://example.org/hello?world=1',
- null,
- 'https://example.org/hello',
- 'https://example.org/hello?world=1',
- null,
- 'example.org',
- ],
'query string in fetched content' => [
'https://example.org/hello',
null,
'https://example.org/hello?world=1',
'query string in fetched content' => [
'https://example.org/hello',
null,
'https://example.org/hello?world=1',
+ 'https://example.org/hello?world=1',
'https://example.org/hello',
'https://example.org/hello',
'example.org',
],
'fragment in fetched content' => [
'example.org',
],
'fragment in fetched content' => [
'https://example.org/hello',
null,
'https://example.org/hello?foo#world',
'https://example.org/hello',
null,
'https://example.org/hello?foo#world',
+ 'https://example.org/hello?foo#world',
'https://example.org/hello',
'https://example.org/hello',
'example.org',
],
'different path and query string in fetch content' => [
'example.org',
],
'different path and query string in fetch content' => [