diff --git a/app/views/stockit/new.html.haml b/app/views/stockit/new.html.haml
index 560ae635..28177182 100644
--- a/app/views/stockit/new.html.haml
+++ b/app/views/stockit/new.html.haml
@@ -2,7 +2,7 @@
:javascript
function fillNewStockArticle(text, li) {
- new Ajax.Updater('stock_article_form', '/stockit/fill_new_stock_article_form', {
+ new Ajax.Updater('stock_article_form', '#{url_for(:controller => "stockit", :action => "fill_new_stock_article_form")}', {
parameters: {article_id: li.id}
});
}