Issue #2283299 by eshta: fix path used for action matching in cases of ajax form submissions.