Fix adding tags

Hmm, @get_path_obj requires a path in ajax requests, so I think this is
not the only one broken.