Skip to content

Commit c7660ee

Browse files
committed
fix html meta link
1 parent 91e44ae commit c7660ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/gsmap/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def save_meta(storage):
244244
proto = 'https' if settings.USE_HTTPS else 'http'
245245
meta = f'''
246246
<meta name="og:title" content="{instance.title}">
247-
<meta name="og:url" content="{instance.get_absolute_link()}">
247+
<meta name="og:url" content="{proto}://{domain}{instance.get_absolute_url()}">
248248
<meta name="og:image" content="{proto}://{domain}/{instance.image_facebook()}">
249249
<meta name="twitter:image" content="{proto}://{domain}/{instance.image_twitter()}">
250250
'''

0 commit comments

Comments
 (0)