File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -279,18 +279,17 @@ <h2>Plugins for Nikola <small>version
279
279
// DEFAULT VERSION SET HERE
280
280
var current_version = 7 ;
281
281
var already_initialized = false ;
282
- var canonical = 'https://plugins.getnikola.com/' ;
282
+ var canonical = document . querySelector ( 'link[rel="canonical"]' ) ;
283
283
fetch ( current_version ) ;
284
284
already_initialized = true ;
285
285
function hash_handler ( ) {
286
286
if ( location . hash ) {
287
287
plugin = location . hash . slice ( 1 ) ;
288
- canonical = canonical + ' #' + plugin ;
288
+ canonical . href = 'https://plugins.getnikola.com/ #' + plugin ;
289
289
}
290
290
else {
291
- plugin = null ;
291
+ canonical . href = 'https://plugins.getnikola.com/' ;
292
292
}
293
- document . querySelector ( 'link[rel="canonical"]' ) . href = canonical ;
294
293
// Show plugin data
295
294
container = $ ( '#rightside' ) ;
296
295
container . html ( '' ) ;
You can’t perform that action at this time.
0 commit comments