Skip to content

Commit 41c9649

Browse files
UribeAbrahammislav
authored andcommitted
only add hash if it is not empty
on options.beforeSend check if there is a hash to prevent the extra # on URLs without hash
1 parent 94d1911 commit 41c9649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.pjax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function pjax(options) {
226226
}
227227

228228
var url = parseURL(settings.url)
229-
url.hash = hash
229+
if (hash) url.hash = hash
230230
options.requestUrl = stripInternalParams(url.href)
231231
}
232232

0 commit comments

Comments
 (0)