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)
93
93
get '/:page.html' do
94
94
erb :"#{ params [ :page ] } " , :layout => !pjax?
95
95
end
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) {
1091
1091
container : "#main"
1092
1092
} )
1093
1093
} )
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
+ } )
1094
1108
}
You can’t perform that action at this time.
0 commit comments