Skip to content

Commit

Permalink
Merge pull request codrops#2 from kosssi/fixbug/history-url
Browse files Browse the repository at this point in the history
fix history url bug
  • Loading branch information
botelho committed Dec 12, 2012
2 parents e2f2d54 + 9a070d9 commit 775f1a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/gamma.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,11 @@ var Gamma = (function() {
}
else if( id === undefined ) {

History.pushState( null, null, url('protocol') + '://' + url('hostname') + url('path') );
History.pushState(
null,
null,
url('protocol') + '://' + url('hostname') + ((url('port') != 80)?':' + url('port'):'') + url('path')
);

}
// adds a new state to the history object
Expand Down

0 comments on commit 775f1a7

Please sign in to comment.