Skip to content

Commit

Permalink
[10.0][FIX][website_seo_redirection] Fix url updates in promote panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
rruebner committed May 19, 2017
1 parent f5bffd2 commit 66ceb95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website_seo_redirection/static/src/js/website_seo.js
Expand Up @@ -5,8 +5,8 @@ odoo.define('website_seo_redirection.website_seo', function(require) {
var ajax = require("web.ajax");
var base = require("web_editor.base");
var core = require("web.core");
var Model = require('web.Model');
var seo = require("website.seo");
var session = require("web.session");

ajax.loadXML(
'/website_seo_redirection/static/src/xml/website_seo.xml',
Expand All @@ -31,7 +31,7 @@ odoo.define('website_seo_redirection.website_seo', function(require) {
if (newurl === document.location.pathname) {
return $.Deferred().resolve("no-reload");
}
return session.model("website.seo.redirection").call(
return new Model("website.seo.redirection").call(
"smart_add",
[document.location.pathname, newurl, base.get_context()]
);
Expand Down

0 comments on commit 66ceb95

Please sign in to comment.