Skip to content

Commit

Permalink
add / to canonical URL
Browse files Browse the repository at this point in the history
  • Loading branch information
lena-larionova authored and mheap committed Aug 30, 2022
1 parent 5a49ce2 commit 1954229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/_plugins/generators/plugin_single_source_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def initialize(site, version, author, plugin_name, source_file, source_path, per
@data['version'] = version if set_version
@data['is_latest'] = permalink_name == 'index'

@data['canonical_url'] = "/hub/#{author}/#{plugin_name}" unless @data['is_latest']
@data['canonical_url'] = "/hub/#{author}/#{plugin_name}/" unless @data['is_latest']
@data['seo_noindex'] = true unless @data['is_latest']

# We need to set the path so that some of the conditionals in templates
Expand Down

0 comments on commit 1954229

Please sign in to comment.