Fix SharePoint ASPX Pages Redirecting or Appearing Blank on Mobile
Question details
Determine why an uploaded ASPX page redirects or appears blank on mobile and find a supported way to display its content.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- An HTML file containing CSS and JavaScript was renamed with an ASPX extension and uploaded to a SharePoint document library.
- Observed behavior
- The page may open on desktop but redirect to a SharePoint _layouts URL or appear blank on mobile. It also appears blank in desktop mobile-device emulation.
Have the original page URL, the library location, and a test account with access to the file ready. Check whether your SharePoint site allows you to create pages or whether you need an administrator's help.
Test the ASPX File, Access, and Mobile Browser Behavior
Use a simple test file and compare URLs to determine whether the behavior is specific to the custom page.
In the same SharePoint document library, use Upload to add a simple ASPX test file if your site's policies allow it. Open its direct link on desktop and mobile, and note whether it also redirects or appears blank.
In the library, select the affected file and open Manage access from its menu. Confirm that the mobile test account can access the file and is signed in to the same SharePoint site.
Open the same direct file URL in desktop and mobile browsers. Record the destination URL if it changes, and use the desktop browser's mobile-device emulation to check whether the blank page can be reproduced.
Open the original HTML in a code editor and check its CSS, JavaScript, and referenced resource paths. Use the desktop browser's developer tools Console and Network tabs while reproducing the issue to look for script errors or failed requests.

Rebuild the Content as a Supported SharePoint Page
Use this approach when the custom uploaded file is unreliable or cannot be added to Site Pages.
Edit Office Documents with WPS Office
WPS Office is a free, lightweight alternative for editing Office documents with a familiar interface and format compatibility that makes migration easier. It does not fix SharePoint ASPX redirects.

Frequently Asked Questions
Why does my renamed HTML file redirect on mobile?
The redirect may depend on SharePoint's handling of the file, access, or mobile browser behavior. Renaming HTML to ASPX does not make it a supported SharePoint page, so test a simple file in the same library and compare the resulting URLs.
How can I tell whether my custom JavaScript is causing the blank page?
Reproduce the blank page in desktop mobile-device emulation, then check the browser developer tools Console for script errors and the Network tab for failed resource requests.
Why can't I upload my ASPX file to Site Pages?
Site Pages is intended for SharePoint pages, and uploading a renamed HTML file may not be supported even for an administrator. Use New > Page on the site to create a supported page instead.
What should I use for custom interactive content on a SharePoint page?
Use supported page web parts where possible. If the functionality requires custom development, consult a SharePoint developer about a SharePoint Framework solution.




