summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjalpesh2017-07-07 14:45:15 (GMT)
committerRenato Goncalves de Araujo2017-07-07 14:45:15 (GMT)
commit9faadb4ee785183764d39f328ed843112b293d78 (patch)
tree338f1c391ef71a1adeb83b2d35dbc4b0341fb653
parentcd54d14ae96d2e874cedf019664054f575f7aec2 (diff)
Issue #2893035 by jalpesh, RenatoG: Remove "/" from "/admin/config/media/colorbox"
-rw-r--r--colorbox.install4
1 files changed, 3 insertions, 1 deletions
diff --git a/colorbox.install b/colorbox.install
index 742667b..50c69cd 100644
--- a/colorbox.install
+++ b/colorbox.install
@@ -5,13 +5,15 @@
* Install, update and uninstall functions for the colorbox module.
*/
+use Drupal\Core\Url;
+
/**
* Implements hook_install().
*/
function colorbox_install() {
drupal_set_message(t('Thanks for installing Colorbox'));
drupal_set_message(t('You may configure Colorbox by visiting <a href="@url_settings">@url_settings</a>', [
- '@url_settings' => '/admin/config/media/colorbox',
+ '@url_settings' => Url::fromRoute('colorbox.admin_settings')->toString(),
]));
}