Permalink
Browse files

Merge pull request #2 from kosssi/fixbug/history-url

fix history url bug
  • Loading branch information...
2 parents e2f2d54 + 9a070d9 commit 775f1a7ccae89b31f6105ca98c48c398bb6b638f @botelho botelho committed Dec 12, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 js/gamma.js
View
@@ -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

0 comments on commit 775f1a7

Please sign in to comment.