Disable aspnet.friendlyurl's mobile redirect for tablets

后端 未结 2 555
情话喂你
情话喂你 2020-12-15 05:57

My Website is responsive with Twitter Bootstrap and the desktop pages are designed for tablets and desktop. aspnet.friendlyUrls considers tablet devices as mobile and sends

2条回答
  •  悲&欢浪女
    2020-12-15 06:40

    There is no setting to turn this off, but you can disable this by deleting the Site.Mobile.Master and ViewSwitcher files

    The following files are no longer needed:

    Site.Mobile.Master
    - Site.Mobile.Master.cs
    - Site.Mobile.Master.designer.cs

    ViewSwitcher
    - ViewSwitcher.cs
    - ViewSwitcher.ascx.cs

    Thanks to @fortboise for simplifying my answer

提交回复
热议问题