File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2222 config ( ) {
2323 this . page . url = w . location . href ;
2424 this . page . title = d . title ;
25- this . page . identifier = w . location . pathname ;
25+ this . page . identifier = w . location . pathname . replace ( / \/ $ / , '' ) ;
2626 } ,
2727 } ) ;
2828 } else {
2929 w . disqus_config = function disqusConfig ( ) {
3030 this . page . url = w . location . href ;
3131 this . page . title = d . title ;
32- this . page . identifier = w . location . pathname ;
32+ this . page . identifier = w . location . pathname . replace ( / \/ $ / , '' ) ;
3333 } ;
3434 w . loadJSDeferred ( d . getElementById ( "_hrefDisqus" ) . href + 'embed.js' ) ;
3535 }
4343 config : function ( ) {
4444 this . page . url = w . location . href ;
4545 this . page . title = d . title ;
46- this . page . identifier = w . location . pathname ;
46+ this . page . identifier = w . location . pathname . replace ( / \/ $ / , '' ) ;
4747 }
4848 } ) ;
4949 }
You can’t perform that action at this time.
0 commit comments