Permalink
Browse files

fix history url bug

  • Loading branch information...
Simon Constans
Simon Constans committed Dec 11, 2012
1 parent e2f2d54 commit 9a070d9bfe03654037a1414741868ff14f10e23b
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 9a070d9

Please sign in to comment.