diff --git a/templates/news_delete.tpl b/templates/news_delete.tpl
index bff5f7a48e5952c7bd39424b23c2a23ae6184407..c68d9eda30480552032ea5fd5ead8a6ce17f0e6d 100644
--- a/templates/news_delete.tpl
+++ b/templates/news_delete.tpl
@@ -1,4 +1,4 @@
-<form class="dialog" action="{$path}" method="post">
+<form class="dialog" action="{$baseurl}{$path}" method="post">
 <div class="box">
 <div class="boxhead"><h2>Warning</h2></div>
 <div class="boxcontent">
diff --git a/templates/news_edit.tpl b/templates/news_edit.tpl
index 5adfa4ea37775a4b824d17a1c2ca6a83e66f42cc..3fbb23c48bd0c60ba5e7b1ebcc3c8456b8d73d35 100644
--- a/templates/news_edit.tpl
+++ b/templates/news_edit.tpl
@@ -1,7 +1,7 @@
 
 <h2>Post a news item</h2>
 
-<form class="admin" action="{$path}" method="POST">
+<form class="admin" action="{$baseurl}{$path}" method="POST">
         <div class="row">
                 <label for="edittitle">Title</label>
                 <span class="textinput"><input type="text" name="edittitle" id="edittitle" value="{$news[0].title}" style="width: 100%;" /></span>
diff --git a/templates/news_expire.tpl b/templates/news_expire.tpl
index 40adc8d5ec310426181992c337b048387dfe6fbd..473039091f687ceca565bfeaedf5cd131bd86a70 100644
--- a/templates/news_expire.tpl
+++ b/templates/news_expire.tpl
@@ -1,4 +1,4 @@
-<form class="dialog" action="{$path}" method="post">
+<form class="dialog" action="{$baseurl}{$path}" method="post">
 <div class="box">
 <div class="boxhead"><h2>Warning</h2></div>
 <div class="boxcontent">
diff --git a/templates/pastebin-sidebar.tpl b/templates/pastebin-sidebar.tpl
index 715ff7195c2863dc52e42e4102ad9939ec30b6bf..eb65f19aa54f0138f1c33707bb981a49f5edfe49 100644
--- a/templates/pastebin-sidebar.tpl
+++ b/templates/pastebin-sidebar.tpl
@@ -2,7 +2,7 @@
 {if count($pasteList) > 0 }
 	<ul id="lstSidebar">
 {foreach name=pasteList from=$pasteList item=pasteItem}
-		<li><a href="{$urifragment}{$pasteItem.id}"> {$pasteItem.name} - {$pasteItem.time_diff} ago </a></li>
+		<li><a href="{$baseurl}{$urifragment}{$pasteItem.id}"> {$pasteItem.name} - {$pasteItem.time_diff} ago </a></li>
 {/foreach}
 	</ul>
 {else}