Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
FIX: Uploads didn't work for subfolder anymore
  • Loading branch information
gschlager committed Oct 30, 2018
1 parent 5b14f71 commit 733b8af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/views/layouts/_head.html.erb
Expand Up @@ -15,6 +15,9 @@
<% else %>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes">
<% end %>
<%- if Discourse.base_uri.present? %>
<meta name="discourse-base-uri" content="<%= Discourse.base_uri %>">
<% end %>
<%= canonical_link_tag %>
<%= render_sitelinks_search_tag %>
<link rel="search" type="application/opensearchdescription+xml" href="<%= Discourse.base_url %>/opensearch.xml" title="<%= SiteSetting.title %> Search">
2 changes: 0 additions & 2 deletions app/views/wizard/index.html.erb
Expand Up @@ -9,8 +9,6 @@
<script src="<%= ExtraLocalesController.url("wizard") %>"></script>
<%= csrf_meta_tags %>
<meta name="discourse-base-uri" content="<%= Discourse.base_uri %>">

<%= render partial: "layouts/head" %>
<title><%= t 'wizard.title' %></title>
</head>
Expand Down

1 comment on commit 733b8af

@discoursebot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/avatar-uploads-broken-on-subfolder-installs/100643/20

Please sign in to comment.