diff --git a/templates/extinfo_type_1.tt b/templates/extinfo_type_1.tt
index d4ac407510..4980ae6924 100644
--- a/templates/extinfo_type_1.tt
+++ b/templates/extinfo_type_1.tt
@@ -87,29 +87,29 @@
[% END %]
+ [% IF host.action_url_expanded %]
+ [% action_url = proxifiy_url(c, host, get_action_url(c, 2, 1, host.action_url_expanded, host)) %]
+
+ [% END %]
[% IF host.notes_url_expanded %]
-
- [% END %]
- [% has_bp = has_business_process(host) %]
- [% IF has_bp %]
-
- [% END %]
- [% IF host.action_url_expanded %]
- [% action_url = proxifiy_url(c, host, get_action_url(c, 2, 1, host.action_url_expanded, host)) %]
-
- [% END %]
+
+ [% END %]
+ [% has_bp = has_business_process(host) %]
+ [% IF has_bp %]
+
+ [% END %]
diff --git a/templates/extinfo_type_2.tt b/templates/extinfo_type_2.tt
index d53ed4895b..4c9a216de0 100644
--- a/templates/extinfo_type_2.tt
+++ b/templates/extinfo_type_2.tt
@@ -94,12 +94,14 @@
[% IF service.action_url_expanded %]
[% action_url = proxifiy_url(c, service, get_action_url(c, 2, 1, service.action_url_expanded, service)) %]
[% END %]
[% IF service.notes_url_expanded %]