diff --git a/src/Wallabag/ApiBundle/Controller/DeveloperController.php b/src/Wallabag/ApiBundle/Controller/DeveloperController.php index 052bda99d..3fdf55d0a 100644 --- a/src/Wallabag/ApiBundle/Controller/DeveloperController.php +++ b/src/Wallabag/ApiBundle/Controller/DeveloperController.php @@ -99,6 +99,9 @@ class DeveloperController extends AbstractController */ public function howtoFirstAppAction() { - return $this->render('@WallabagCore/Developer/howto_app.html.twig'); + return $this->render('@WallabagCore/Developer/howto_app.html.twig', + [ + 'wallabag_url' => $this->getParameter('domain_name'), + ]); } } diff --git a/src/Wallabag/CoreBundle/Resources/views/Developer/howto_app.html.twig b/src/Wallabag/CoreBundle/Resources/views/Developer/howto_app.html.twig index 8e116ddaf..7e3d8e4fc 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Developer/howto_app.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Developer/howto_app.html.twig @@ -2,10 +2,6 @@ {% block title %}{{ 'developer.howto.page_title'|trans }}{% endblock %} -{% block css %} - {{ parent() }} -{% endblock %} - {% block content %}
@@ -17,7 +13,7 @@

{{ 'developer.howto.description.paragraph_3'|trans({'%link%': path('developer_create_client')})|raw }}

{{ 'developer.howto.description.paragraph_4'|trans }}

-

http POST https://app.wallabag.it/oauth/v2/token \
+                    
http POST {{ wallabag_url }}/oauth/v2/token \
     grant_type=password \
     client_id=12_5um6nz50ceg4088c0840wwc0kgg44g00kk84og044ggkscso0k \
     client_secret=3qd12zpeaxes8cwg8c0404g888co4wo8kc4gcw0occww8cgw4k \
@@ -46,7 +42,7 @@ X-Powered-By: PHP/5.5.9-1ubuntu4.13
                 

{{ 'developer.howto.description.paragraph_6'|trans }}

-

http GET https://app.wallabag.it/api/entries.json \
+                    
http GET {{ wallabag_url }}/api/entries.json \
     "Authorization:Bearer ZWFjNjA3ZWMwYWVmYzRkYTBlMmQ3NTllYmVhOGJiZDE0ZTg1NjE4MjczOTVlNzM0ZTRlMWQ0MmRlMmYwNTk5Mw"

{{ 'developer.howto.description.paragraph_7'|trans }}