From 9eca2a0c375aefca2719e60993f8968bd1215a48 Mon Sep 17 00:00:00 2001
From: GoZ <goz@226961.no-reply.drupal.org>
Date: Wed, 29 May 2013 15:35:01 +0200
Subject: [PATCH] Issue #722368 by GoZ: fix path with query another patch

---
 forward.api.php |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 forward.api.php

diff --git a/forward.api.php b/forward.api.php
new file mode 100644
index 0000000..b8e32a9
--- /dev/null
+++ b/forward.api.php
@@ -0,0 +1,15 @@
+<?php
+
+/**
+ * Allows alteration of path.
+ *
+ * @param $path
+ *   The path to redirect after email upcoming.
+ */
+function hook_forward_path_alter(&$path) {
+  // Take care of language negociation.
+  if (!variable_get('locale_language_negotiation_url_part', 0)) {
+    global $language;
+    $path = preg_replace('/\/?' . $language->prefix . '\//', '', $path);
+  }
+}
\ No newline at end of file
-- 
1.7.5.4

