From d1e744e42cf0290590d6a19c275056daaa3ab63f Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Mon, 16 Jan 2017 01:57:44 +0100 Subject: [PATCH] Fix bookmarklet URL (fix #90 and #89) --- controllers/FrontController.php | 2 ++ templates/index.tpl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/FrontController.php b/controllers/FrontController.php index 04734da..91900c0 100644 --- a/controllers/FrontController.php +++ b/controllers/FrontController.php @@ -80,6 +80,7 @@ class FrontController */ public function index(Request $request, Response $response) { + $uri = $request->getUri(); $this->view->render( $response, 'index.tpl', @@ -88,6 +89,7 @@ class FrontController 'uglyUrls' => $this->config->uglyUrls, 'class' => 'index', 'description' => 'Easily download videos from Youtube, Dailymotion, Vimeo and other websites.', + 'domain' => $uri->getScheme().'://'.$uri->getAuthority(), ] ); } diff --git a/templates/index.tpl b/templates/index.tpl index 66eb1ab..d16f6f0 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -28,7 +28,7 @@ See all supported websites

Drag this to your bookmarks bar:

- Bookmarklet + Bookmarklet