B
B
BigD2014-03-25 15:58:54
IIS
BigD, 2014-03-25 15:58:54

How to add an icon for a web page to the iPad home screen if the web page is running as IIS Redirect?

Greetings.
There is a link - application1.company.com . If you go through it, IIS will automatically instantly redirect the user to another page https://application-company.com .
The task is to add an icon to the iPad screen, by clicking on which the user will be sent to application1.company.com .
Ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2014-03-26
@gen1s

I did not find how to do it by standard means, but I came up with a somewhat perverted solution. But working!
The idea is to keep a simple html page configured to redirect to application1.company.com in a data: URL. Already add this page to the iPad screen. Those. the user clicks on the icon, Safari opens with our html page, and then it redirects to application1.company.com/, from where IIS redirects to https://application-company.com/.
1) Convert html to data: here: software.hixie.ch/utilities/cgi/data/data .
Our html:

<!DOCTYPE HTML>
<html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="1;url=http://application1.company.com">
        <title>Page Redirection</title>
    </head>
    <body>
        If you are not redirected automatically, follow the <a href='http://application1.company.com'>link to example</a>
    </body>
</html>

2) In order for our icon to be on the iPad screen (and not just a white square), we need to convert it to base64 and add it to the head section.
For example:
4) As a result, after converting to data: URL we get:
4) Let's go to the iPad. The text converted to data: (it can also be encoded in base64) is copied, disconnected from the Internet. Open Safari and paste the copied text into the address bar. Click Go (Go). Our page will open for a moment and then redirect to the site application1.company.com/. But since we are disconnected from the Internet, the page will not load. Go back and add this page to the screen. Everything.
Checked on iOS 7.1 and everything works as you wanted.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question