From 4faffd503ddabfc477d7809c0661c5542379d7c3 Mon Sep 17 00:00:00 2001 From: Adam Engebretson Date: Sat, 10 Dec 2022 18:52:46 -0600 Subject: [PATCH] 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. --- resources/views/littlelink.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/littlelink.blade.php b/resources/views/littlelink.blade.php index 5654c9a..94cbe59 100644 --- a/resources/views/littlelink.blade.php +++ b/resources/views/littlelink.blade.php @@ -49,7 +49,7 @@ return $path;} - + @@ -61,8 +61,8 @@ return $path;} - - + + @if(file_exists(base_path("img/$littlelink_name" . ".png" ))) @@ -324,4 +324,4 @@ function get_operating_system() { @if(theme('enable_custom_code') == "true" and theme('enable_custom_body_end') == "true" and env('ALLOW_CUSTOM_CODE_IN_THEMES') == 'true')@include($GLOBALS['themeName'] . '.extra.custom-body-end')@endif - \ No newline at end of file +