diff --git a/app/models/glue/pulp/repo.rb b/app/models/glue/pulp/repo.rb
index <HASH>..<HASH> 100644
--- a/app/models/glue/pulp/repo.rb
+++ b/app/models/glue/pulp/repo.rb
@@ -20,7 +20,7 @@ module Glue::Pulp::Repo
       validates_with Validators::KatelloUrlFormatValidator,
                      :attributes => :feed,
                      :field_name => :url, :on => :create,
-                     :if => Proc.new { |o| o.environment.library? }
+                     :if => Proc.new { |o| o.environment.library? && o.in_default_view?  }
 
       before_save :save_repo_orchestration
       before_destroy :destroy_repo_orchestration
Fixed a small error in default content view publish