Showing
2 changed files
with
6 additions
and
1 deletions
| ... | ... | @@ -37,6 +37,11 @@ module Kanjai |
| 37 | 37 | $original_fullpath = request.original_fullpath |
| 38 | 38 | $original_format = request.format |
| 39 | 39 | |
| 40 | + domain_title = "request.domain" | |
| 41 | + if request.subdomain | |
| 42 | + domain_title = "#{request.subdomain}.#{domain_title}" | |
| 43 | + end | |
| 44 | + | |
| 40 | 45 | $domain = Domain.where(title: request.domain).first |
| 41 | 46 | |
| 42 | 47 | if $domain.nil? | ... | ... |