File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -93,3 +93,7 @@ def title(str)
9393get '/:page.html' do
9494 erb :"#{ params [ :page ] } " , :layout => !pjax?
9595end
96+
97+ get '/some-&-path/hello.html' do
98+ erb :hello , :layout => !pjax?
99+ end
Original file line number Diff line number Diff line change @@ -1091,4 +1091,18 @@ if ($.support.pjax) {
10911091 container : "#main"
10921092 } )
10931093 } )
1094+
1095+ asyncTest ( "copes with ampersands when pushing urls" , function ( ) {
1096+ var frame = this . frame
1097+
1098+ frame . $ ( '#main' ) . on ( 'pjax:success' , function ( ) {
1099+ equal ( frame . location . pathname , "/some-&-path/hello.html" )
1100+ equal ( frame . location . search , "" )
1101+ start ( )
1102+ } )
1103+ frame . $ . pjax ( {
1104+ url : "/some-&-path/hello.html" ,
1105+ container : "#main"
1106+ } )
1107+ } )
10941108}
You can’t perform that action at this time.
0 commit comments