Fixes #5028: includes current url and forward url in ajax json