title: Redmine - partial rendering full page instead of part
body: <p>I have a route</p>
  
  <pre><code>match 'time_loggers/render_menu', to: 'time_loggers#render_menu', via: %i[get post]
  </code></pre>
  
  <p>and function for this route</p>
  
  <pre><code>def render_menu
     @project = Project.find_by_id(params[:project_id])
     @issue = Issue.find_by_id(params[:issue_id])
     render partial: 'time_loggers/embed_menu'
  end
  </code></pre>
  
  <p>And there is my AJAX request for this route</p>
  
  <pre><code>    &lt;%= javascript_tag do %&gt;
  function updateTimeLoggerMenu() {
  $.ajax({
      url:"&lt;%=url_for :controller =&gt; '/time_loggers',:action =&gt; 'render_menu' %&gt;",
      data:({&lt;%= (@project.nil? ? nil : "project_id:#{@project.id}") %&gt;&lt;%= ((@issue.nil? or @issue.id.nil?) ? nil : ", issue_id:#{@issue.id}") %&gt;}),
      cache:false,
      success: function(data){
          console.log(data);
          $('#time-logger-menu').html(data);
      },
  });
  }
  &lt;% end %&gt;
  </code></pre>
  
  <p>So that's work fine. But on one page, instead of rendering only part from <code>_embed_menu.html.erb</code> I (Only <code>&lt;div&gt;Test content&lt;/div&gt;</code> inside it)</p>
  
  <p><code>console.log(data);</code> from other pages returns correct partial. <code>&lt;div&gt;Test content&lt;/div&gt;</code></p>
  
  <p>specific page returns full rendering page.</p>
  
  <p>So on the result I have next views: </p>
  
  <p><a href="https://i.stack.imgur.com/U3zIS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U3zIS.png" alt="enter image description here"></a></p>