diff --git a/commerce_nosto_tagging.module b/commerce_nosto_tagging.module
index d7d925f..36be5aa 100644
--- a/commerce_nosto_tagging.module
+++ b/commerce_nosto_tagging.module
@@ -742,7 +742,8 @@ function _commerce_nosto_tagging_validate_line_item_wrapper($line_item_wrapper,
  * First check if the term object can be found through the
  * current menu router ("taxonomy/term/%"). If not found, then
  * check if the term id can be found as a view argument (Views module)
- * through the current menu router ("views_arg").
+ * through the current menu router ("views_arg"). After that, check using
+ * path arguments
  *
  * @return object|bool
  *   The taxonomy term object or false.
@@ -751,7 +752,11 @@ function _commerce_nosto_tagging_get_current_taxonomy_term() {
   $taxonomy_term = menu_get_object('taxonomy_term', 2);
   if (empty($taxonomy_term)) {
     $taxonomy_term_id = menu_get_object('views_arg');
-    if (!empty($taxonomy_term_id) && ctype_digit($taxonomy_term_id)) {
+    if(empty($taxonomy_term_id)) {
+      if (arg(0) == 'taxonomy' && arg(1) == 'term' && ctype_digit(arg(2))) {
+        $taxonomy_term = taxonomy_term_load(arg(2));
+      }
+    } else if (!empty($taxonomy_term_id) && ctype_digit($taxonomy_term_id)) {
       $taxonomy_term = taxonomy_term_load($taxonomy_term_id);
     }
   }

