lib/authpds/controllers/authpds_controller/url_handling.rb in authpds-0.2.1 vs lib/authpds/controllers/authpds_controller/url_handling.rb in authpds-0.2.2
- old
+ new
@@ -8,10 +8,10 @@
super options
end
# Controller method to generate the Appropriate redirect url
def user_session_redirect_url(url)
- (url.nil?) ? (request.referer.nil?) ? root_url : request.referer : url
+ (url.nil? or url.empty?) ? (request.referer.nil?) ? root_url : request.referer : url
end
end
end
end
end
\ No newline at end of file