mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-15 18:57:20 +02:00
Correcting Social Links
Social services will utilize the Canonical URL while fetching sharable information like page title and image. This hard-coded value results in all share attempts resulting in 404s for the link fetching service. Laravel Blade supports front-end frameworks that utilize similar-to-Blade syntax `{{ }}` by adding an escape option `@{{ }}`. As such, string concatenation of the `@` and the `$littlelink_name` was necessary.
This commit is contained in:
parent
ef2ea18ea8
commit
4faffd503d
@ -49,7 +49,7 @@ return $path;}
|
|||||||
<!-- This shows a preview for title, description and avatar image of users profiles if shared on social media sites -->
|
<!-- This shows a preview for title, description and avatar image of users profiles if shared on social media sites -->
|
||||||
|
|
||||||
<!-- Facebook Meta Tags -->
|
<!-- Facebook Meta Tags -->
|
||||||
<meta property="og:url" content="{{ url('') }}/@littlelink_name">
|
<meta property="og:url" content="{{ url('') }}/{{ "@" . $littlelink_name }}">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:title" content="{{ $userinfo->name }}">
|
<meta property="og:title" content="{{ $userinfo->name }}">
|
||||||
<meta property="og:description" content="{{ $userinfo->littlelink_description }}">
|
<meta property="og:description" content="{{ $userinfo->littlelink_description }}">
|
||||||
@ -61,8 +61,8 @@ return $path;}
|
|||||||
|
|
||||||
<!-- Twitter Meta Tags -->
|
<!-- Twitter Meta Tags -->
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<meta property="twitter:domain" content="{{ url('') }}/@littlelink_name">
|
<meta property="twitter:domain" content="{{ url('') }}/{{ "@" . $littlelink_name }}">
|
||||||
<meta property="twitter:url" content="{{ url('') }}/@littlelink_name">
|
<meta property="twitter:url" content="{{ url('') }}/{{ "@" . $littlelink_name }}">
|
||||||
<meta name="twitter:title" content="{{ $userinfo->littlelink_name }}">
|
<meta name="twitter:title" content="{{ $userinfo->littlelink_name }}">
|
||||||
<meta name="twitter:description" content="{{ $userinfo->littlelink_description }}">
|
<meta name="twitter:description" content="{{ $userinfo->littlelink_description }}">
|
||||||
@if(file_exists(base_path("img/$littlelink_name" . ".png" )))
|
@if(file_exists(base_path("img/$littlelink_name" . ".png" )))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user