Port javascript: URL prevention to blaze-refactor