add htm to uri, use site.uri for screenshot

This commit is contained in:
Kyle Drake 2024-09-19 12:47:21 -05:00
parent 0e827319cd
commit 3a41029313
3 changed files with 4 additions and 4 deletions

View file

@ -1438,7 +1438,7 @@ class Site < Sequel::Model
return uri unless path
path = '' if path == '/' || path =~ ROOT_INDEX_HTML_REGEX
path = path.sub(%r{^/}, '').sub(%r{/index\.html$}, '/').sub(/\.html$/, '')
path = path.sub(%r{^/}, '').sub(%r{/index\.html?$}, '/').sub(/\.html?$/, '')
unless path.empty?
escaped_path = self.class.escape_path path