# Manifest.json has orientation set to portrait, Users cannot turn device to landscape

**URL:** https://meta.discourse.org/t/manifest-json-has-orientation-set-to-portrait-users-cannot-turn-device-to-landscape/55579
**Category:** Development
**Created:** [11 يناير 2017، 9:09ص UTC](https://meta.discourse.org/t/manifest-json-has-orientation-set-to-portrait-users-cannot-turn-device-to-landscape/55579 "2017-01-11T09:09:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jms](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jms](https://meta.discourse.org/u/jms)
#### Post date: [11 يناير 2017، 9:09ص UTC](https://meta.discourse.org/t/manifest-json-has-orientation-set-to-portrait-users-cannot-turn-device-to-landscape/55579/1 "2017-01-11T09:09:57Z")

</div>

When a User has installed the android web app via the “[Add to Homescreen](https://meta.discourse.org/t/add-to-homescreen-banner-on-android/42973/61)” feature the device is locked in the portrait orientation. Especially on a tablet, this is annyoing.

The manifest.json route is configured to point here: app/controllers/metadata\_controller.rb, where the manifest.json rendered.

I logged into the docker container, removed the orientation: portrait line, but the changes are not taking; the delivered manifest.json still looks the same. I tried rake tmp:clear && rake tmp:create and also rake assets:clobber assets:precompile without succces. As you might have guessed, I am a ruby/rails novice. Does anyone know what to do, so that the changes takes effect?

I like the feature quite a lot but maybe the orientation could be moved to SiteSetting.web-app-orientation or something similar?

---

<div class="post-metadata">

### Author: ![jms](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@jms](https://meta.discourse.org/u/jms)
#### Post date: [11 يناير 2017، 9:15ص UTC](https://meta.discourse.org/t/manifest-json-has-orientation-set-to-portrait-users-cannot-turn-device-to-landscape/55579/2 "2017-01-11T09:15:15Z")

</div>

Direct Link to github:

> <https://github.com/discourse/discourse/blob/main/app/controllers/metadata_controller.rb>

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [11 يناير 2017، 9:34ص UTC](https://meta.discourse.org/t/manifest-json-has-orientation-set-to-portrait-users-cannot-turn-device-to-landscape/55579/3 "2017-01-11T09:34:32Z")

</div>

Actually I don’t see why we are locking it to portrait.

[https://github.com/discourse/discourse/commit/d6bf5b0e78364c5022e178d95da23f636e03a91e](https://github.com/discourse/discourse/commit/d6bf5b0e78364c5022e178d95da23f636e03a91e)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [11 يناير 2017، 11:40ص UTC](https://meta.discourse.org/t/manifest-json-has-orientation-set-to-portrait-users-cannot-turn-device-to-landscape/55579/4 "2017-01-11T11:40:53Z")

</div>


