This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix
#6526
: Only store redirect location if not in JSON format (
#6528
)
pull/4/head
Eugen Rochko
6 years ago
committed by
GitHub
parent
90f12f2e5a
commit
d8bc64bb09
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/controllers/application_controller.rb
+ 1
- 1
app/controllers/application_controller.rb
View File
@ -35,7 +35,7 @@ class ApplicationController < ActionController::Base
end
def
store_current_location
store_location_for
(
:user
,
request
.
url
)
store_location_for
(
:user
,
request
.
url
)
unless
request
.
format
==
:json
end
def
require_admin!
Write
Preview
Loading…
Cancel
Save