From e09d3a2c6692fbc16cc6788cdc32b87e86f0b60f Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 21 Dec 2016 00:13:13 +0100 Subject: Fix #249 - use window.location hack to let people login from sandboxed iOS homescreen --- app/controllers/media_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/media_controller.rb b/app/controllers/media_controller.rb index 9832a91b4..6f1f7ec48 100644 --- a/app/controllers/media_controller.rb +++ b/app/controllers/media_controller.rb @@ -4,7 +4,7 @@ class MediaController < ApplicationController before_action :set_media_attachment def show - redirect_to TagManager.instance.url_for(@media_attachment.status) + redirect_to @media_attachment.file.url(:original) end private -- cgit