diff --git a/client/metatags.lua b/client/metatags.lua
index 586a1fc4..f14aa14a 100644
--- a/client/metatags.lua
+++ b/client/metatags.lua
@@ -17,11 +17,12 @@ local server_info = cjson.decode((ngx.location.capture("/_internal_api/info")).b
local additional_tags = ""
local function add_meta_tag (property, content)
- additional_tags = additional_tags .. ""
+ additional_tags = additional_tags .. ""
end
-- Add the site name tag
add_meta_tag("og:site_name", server_info.config.name)
+add_meta_tag("og:url", ngx.var.scheme .. "://" .. ngx.var.http_host .. ngx.var.request_uri)
local final_response = page_html.body:gsub("{{ generated_head_tags }}", additional_tags)
diff --git a/client/nginx.conf.docker b/client/nginx.conf.docker
index 3040dfaf..e4983100 100644
--- a/client/nginx.conf.docker
+++ b/client/nginx.conf.docker
@@ -81,7 +81,7 @@ http {
location / {
root /var/www;
- try_files $uri /_og_tags_html;
+ try_files $uri /_meta_tags_html;
sendfile on;
tcp_nopush on;
@@ -104,7 +104,8 @@ http {
proxy_pass http://backend/$1;
}
- location /_og_tags_html {
+ location /_meta_tags_html {
+ internal;
root /var/www;
content_by_lua_file /etc/nginx/metatags.lua;
}