Commit 32a12aff authored by Vincent Bechu's avatar Vincent Bechu

[erp5_web_renderjs_ui] Router redirect on home page when it fail getting parent's document link.

parent 9d71f234
...@@ -509,6 +509,14 @@ ...@@ -509,6 +509,14 @@
copyStickyParameterDict(previous_options, options); copyStickyParameterDict(previous_options, options);
return addNavigationHistoryAndDisplay(gadget, uri.segment(2), options); return addNavigationHistoryAndDisplay(gadget, uri.segment(2), options);
} }
}, function (error) {
if ((error instanceof jIO.util.jIOError) &&
(error.status_code === 404)) {
var options = {};
copyStickyParameterDict(previous_options, options);
return gadget.redirect({command: 'display', options: options});
}
throw error;
}); });
} }
......
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>vincent</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>961.9337.61584.40226</string> </value> <value> <string>963.17770.52424.63095</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -250,7 +250,7 @@ ...@@ -250,7 +250,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1501689246.43</float> <float>1509973413.87</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment