Views preview crashes when using pager in multi-lingual site.

The view gives out JSON in text area box ( look picture).

This issue can be duplicated for example using Drupals own Multilingual Demo.

Steps to reproduce:
1. Go to Multilingual demo or any multilingual Drupal 8 site that has URL detection method enabled.
2. Go to any view that has data in it ( for example People)
3. Change settings to Use pager.
4. try changing the page in preview.

This only happens when there is a language code in the url, while in the view edit page.

Files: 
CommentFileSizeAuthor
Screen Shot 2017-03-20 at 13.50.02.png248.55 KBeeahktzugr

Comments

eeahktzugr created an issue. See original summary.

cilefen’s picture

Issue tags: -views +JavaScript
droplet’s picture

Version: 8.2.x-dev » 8.3.x-dev
Issue tags: +multilingual, +Needs JS testing

Confirmed. On Multilingual preview, it hasn't return JSON type in Content-Type. It works in the normal page so I guess the View UI preview code removed the header info.