When no licence key is enabled the module reports "An error occurred retrieving the sitemorse results, please check your module configuration for errors."

Can you link the "module configuration" text to the configuration page for easy shortcut to setting up.

Comments

budda created an issue. See original summary.

pfaocle’s picture

Status: Active » Needs review
StatusFileSize
new879 bytes

Patch attached for review.

andyrigby’s picture

Thanks for your contribution:

-              $('.sitemorse-popup-content').html(Drupal.t("An error occurred retrieving the sitemorse results, please check your module configuration for errors."));
+              $('.sitemorse-popup-content').html(
+                Drupal.t(
+                    "An error occurred retrieving the Sitemorse results, please check your <a href=\"@module-configuration-page\">module configuration</a> for errors.",
+                    {'@module-configuration-page': '/admin/config/content/sitemorse'}

I think we should use the route's URL here, in case it ever changes.

andyrigby’s picture

Status: Needs review » Needs work
roberto.rivera.ixis’s picture

Patch attached for review.

pfaocle’s picture

Status: Needs work » Needs review
pjnes’s picture

Patch in #5 works well here, and is now getting the url from the sitemorse_lite.config route.

There was a console.log() introduced in the patch, so have rerolled with that removed.

pfaocle’s picture

Assigned: Unassigned » pfaocle
pfaocle’s picture

Status: Needs review » Fixed

Thanks all! Committed.

  • pfaocle committed 022bf9a on 8.x-1.x authored by PJnes
    Issue #3124737 by pfaocle, roberto.rivera.ixis, PJnes: Link the error...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.