Skip to content

Commit

Permalink
Fix for some broken sites that have a Location header that points to …
Browse files Browse the repository at this point in the history
…the same URL
  • Loading branch information
brewt committed Jan 31, 2013
1 parent 30ab2fc commit 7cf8e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ YSLOW.Component.prototype.populateProperties = function (resolveRedirect, ignore

// check location
// bookmarklet and har already handle redirects
if (that.headers.location && resolveRedirect) {
if (that.headers.location && resolveRedirect && that.headers.location !== that.url) {
// Add a new component.
comp = that.parent.addComponentNoDuplicate(that.headers.location,
(that.type !== 'redirect' ? that.type : 'unknown'), that.url);
Expand Down

0 comments on commit 7cf8e9e

Please sign in to comment.