I don't like this being on by default.
This will fuck up and double call any call that actually gets rendered.
How about instead creating a method/filter you can call that does this action only when you need to?

and instead of replace km url api - I would call this keep_km_url_event or something'