Skip to content

strip linkType from both sides of the redirect compare; fix push(m) typo#27

Open
sboeckelmann wants to merge 1 commit into
gs1:masterfrom
sboeckelmann:fix/strip-symmetry-and-threehundredlinks-typo
Open

strip linkType from both sides of the redirect compare; fix push(m) typo#27
sboeckelmann wants to merge 1 commit into
gs1:masterfrom
sboeckelmann:fix/strip-symmetry-and-threehundredlinks-typo

Conversation

@sboeckelmann
Copy link
Copy Markdown
Contributor

Resolvers whose linkset href carries ?linkType=... (valid URI; convenient for self-served links) were failing testSingleLinkObject / testMultipleLinks because the strip ran on the Location header only — never on targetURL — so identical URLs compared unequal once one side had been shortened.

Also the identical-attributes loop pushed m in both branches, leaving f (typically index 0) out of the 300-candidate set.

Resolvers whose linkset href carries `?linkType=...` (valid URI; convenient
for self-served links) were failing testSingleLinkObject / testMultipleLinks
because the strip ran on the Location header only — never on targetURL —
so identical URLs compared unequal once one side had been shortened.

Also the identical-attributes loop pushed `m` in both branches, leaving
`f` (typically index 0) out of the 300-candidate set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant