how to redirect IE to Edge like youtube, twitter, stackoverflow without permission [duplicate] - redirect

When you navigate to https://stackoverflow.com in IE11, it redirects the user to Edge with the following tab open: https://support.microsoft.com/en-us/office/the-website-you-were-trying-to-reach-doesn-t-work-with-internet-explorer-8f5fc675-cd47-414c-9535-12821ddfc554?ui=en-us&rs=en-us&ad=us
How do I implement this in my own site? Is there a meta tag that can enable this?
EDIT: Here's a clip of what it looks like. Tried on Windows 10. https://streamable.com/nwtt22

Ah yes, I wondered this too, and also assumed to be a browser only thing.
Sure enough!
It's the ie_to_edge_bho (Browser Helper Object) DLL file found in the Edge Program files.
I was curious enough to Hex edit the DLL file and found the URL in which it pulls these approved sites from... almost like a master/default list.
Yes, it's built into the BHO, no it's not stored locally from what I can tell.
(Screenshot of Hex editor)
Here is the link: https://go.microsoft.com/fwlink/?linkid=2133855
Which forwards to https://edge.microsoft.com/neededge/v1
I have no idea how you get your own site on this list, but I figured I would add this information. :)

I was wondering this too. After reading Joshua Joppie's answer, I did some Googling and found this webpage.
Turns out, you need to e-mail Microsoft to get your site added to the Edge-only list (how to do so is explained on that page). I'm not sure if they'll take a request from anyone, or whether you need to be a big website, like Stack Overflow. It's worth trying anyway, as the only requirement they give is this:
The IE compatibility list is designed to work with public sites only.
To be honest, I've no idea why they didn't just make a <meta> tag for it. It would be much easier.
If I have time (which I doubt), I plan to make a JS programme that mimics the functionality of a website's presence on this list and I will link to it here. You could always do a user agent check that redirects the user to microsoft-edge:https://example.com (where example.com is your website) if it detects them using Internet Explorer.

Need to add the below script in the head tag to redirect your website in Edge browser
<script>
if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
window.location = 'microsoft-edge:' + window.location;
setTimeout(function() {
window.open('', '_self', '').close();
// window.location = 'https://support.microsoft.com/en-us/topic/we-recommend-viewing-this-website-in-microsoft-edge-160fa918-d581-4932-9e4e-1075c4713595?ui=en-us&rs=en-us&ad=us';
}, 0);
}
</script>

This is controlled by Edge Chromium group policy not code. You can refer to the steps below to set the group policy to achieve the goal:
1. Send all sites not included in the Enterprise Mode Site List to Microsoft Edge
This setting lets you decide whether to open all sites not included in the Enterprise Mode Site List in Microsoft Edge. If you use this setting, you must also turn on the Administrative Templates\Windows Components\Internet Explorer\Use the Enterprise Mode IE website list policy setting and you must include at least one site in the Enterprise Mode Site List.
Open Group Policy Editor.
Click Computer Configuration > Administrative Tools > Windows Components > Internet Explorer.
Double-click Send all sites not included in the Enterprise Mode Site List to Microsoft Edge.
Select Enabled.
Click OK or Apply to save these settings.
2. Configure which channel of Microsoft Edge to use for opening redirected sites
This policy enables you to configure up to three versions of Microsoft Edge to open a redirected site (in order of preference).
In the same path of Group Policy Editor, double-click Configure which channel of Microsoft Edge to use for opening redirected sites.
Select Enabled.
Under Options, select your top three choices for the channel to use - Internet Explorer will redirect to the highest ranked choice that the user has installed on that device:
Microsoft Edge Stable
Microsoft Edge Beta version 77 or later
Microsoft Edge Dev version 77 or later
Microsoft Edge Canary version 77 or later
Microsoft Edge version 45 or earlier
Click OK or Apply to save these settings.
3. Use the Enterprise Mode IE website list
This policy setting lets you specify where to find the list of websites you want opened using Enterprise Mode IE.
Create or reuse a Site List XML. Sample file is like below:
site.xml:
<site-list version="8">
<created-by>
<tool>EMIESiteListManager</tool>
<version>10.0.14357.1004</version>
<date-created>08/20/2020 07:45:39</date-created>
</created-by>
<site url="www.example.com">
<compat-mode>IE7</compat-mode>
<open-in>IE11</open-in>
</site>
</site-list>
In the same path of Group Policy Editor, double-click Use the Enterprise Mode IE website list.
Select Enabled.
Under Options, type the location of website list. If it's in local, you can set it like this: file://D:/site.xml.
Click OK or Apply to save these settings.

It's quite simple to add your domain to the redirection list.
https://learn.microsoft.com/en-us/microsoft-edge/web-platform/ie-to-microsoft-edge-redirection#request-an-update-to-the-ie-compatibility-list
https://learn.microsoft.com/en-us/deployedge/edge-learnmore-neededge
Request an update to the IE compatibility list The IE compatibility
list is an XML file on microsoft.com. The list is regularly updated in
response to user and website developer requests to have websites added
or removed. Updates to the list are automatically downloaded to user
machines.
Email the following information to ietoedge#microsoft.com for your
website to be added or removed from the IE compatibility list.
Owner name Corporate title Email address Company name Street address
Website address

I'm fairly certain that Microsoft checks its "Enterprise Mode Site List" in order to decide whether to open the webpage or direct users to Edge. You can find more information about it here: https://learn.microsoft.com/en-us/internet-explorer/ie11-deploy-guide/what-is-enterprise-mode

Related

Host Sinatra Web Site in Team City

Whenever I open my team city triggered runs to looks at the results, I want to provide a tab where I can see my Ruby-Sinatra web server.
Ideally that should result in a Same Domain Error because team city tabs are i-frames, If I give a html page with a hyper link to the web server.
How can I go about it
For the Same Domain Issue, I set the X-Frame-Option to *, This way it worked in IE and Firefox as it explicitly understood the option. However in Chrome it did not understand the * option so bypassed it all together, which did the trick.

Google Apps Scripting: How see the version number of a Google Sites page on the page itself

I want to see the version number of a Google Sites page on the page itself. I am talking about the numbers you see when you click the "More" button, then select "Revision History".
I am OK with any method to solve the problem, however currently I am trying to solve the problem with Google Apps Scripting.
I am able to see the last update time of the page by embedding the script below to the page:
function doGet(e){
var app= UiApp.createApplication();
var page = SitesApp.getActivePage();
app.add(app.createHTML('Last updated: ' + page.getLastUpdated().toISOString()));
return app;
}
The problem is, I could not find a getVersion() like method.
Thx.
You can't do this for several reasons.
The page version is hosted in this variable inside the google site pages.
webspace.page.revision
This is a good news but you can't access it.
1) If you try to access it using html box, the content of your html will be sanitized by caja and you will not access this variable.
2) If you try to build a javascript code and put it in an Apps Script caja will also forbid you to use variables from the parent frame. Even if you use SandboxMode.NATIVE.
3) If you try to put this code in some other site and include it as an iframe the content will be striped by your browser because of cross domain restrictions.
Sorry to say but what you want is impossible with todays caja restrictions.

SharePoint Site redirect based on SharePoint Group

I have three separate user group say HR, IT and Supplies this three groups have their own sub sites.
HR=/site1
IT=/site2
Supplies=/site3
but they have a common top level site say "http://xyz.com"
When a user from HR opens the top level site he should be redirected automatically to the respective sub-site (site1) similarly IT to site2 and same with Supplies.
Can this be done using OOTB method.
If your site is using unique permissions at subsite level, following might work. I am explaining it for a single group IT:
[1] Add content editors in your welcome page of root lelvel site.
[2] Set chrome type to none, and set all it sharepoint groups in audience
[3] set content to
&ltscript type="text/javascript">window.location.href='/IT/';</script>
Same way add content editor web part for each subsite.
This way, if someone from IT group logs in, then and then the content editor web part become visible and the script redirects them to IT home page. This is just a hint, not a real solution.
Draw backs:
[1] Admins will also redirect to the same page and no one will be able to edit the page.
[2] Someone having permission to access more than one department will redirect to any site randomly based on script execution order.
There are ways to improve script written in content editor web part to overcome both of the above changes. You can simply using sharepoint javascript api to improve the script.
Let me know if this makes sense.

Editing Files in My account Magento CE

Hello I am using Magento CE 1.7.2 I am trying to edit the customers "My Account" Pages
I cannot find what file to edit to change the layout and design of the following:
My account:
Account Dash Board (got this to work editing customer/account/dashboard.phtml)
Account Information (Tried customer/account/dashboard/info.phtml Didn't work)
Address Book (Tried customer/account/dashboard/address.phtml Didn't Work)
My Orders (No idea)
Newsletter Subscriptions (Tried customer/account/dashboard/newsletter.phtml Didn't Work)
What files do I edit? Please show the directory.... Thanks!
Telling you the exact path would be like "giving you a fish".
Instead, I will "teach you how to fish".
Login to your admin panel in Magento.
Head to System > Configuration. At the bottom of your left menu you will find a Developper link.
Head to this link, then in the upper left of the given page, select a webiste in the dropbox under Current Configuration Scope.
Open the Debug section and set Template Path Hints to Yes.
Reload your customer page in frontend. Tada! You can now see where is every single files you have to edit to change anything in your Magento.

SQL Server Reporting Services using of pictures with dynamic links

I have setup a SSRS 2008 and building reports. So far so good.
Now there is a picture control in SSRS where you can set the picture as external link reference.
There you can choose to use a link. When I use a weblink (http://anyurl/download_picture.aspx?id=123) it dont' work for me.
Calling the url in the web browser (all tested IE, Safari, Chrome, FF) the pictures is delivered, Header is ok, content type, too.
Does it work in general in SSRS ? Or do I have to copy the picture to a temp folder and link the url like http://anyurl/mypicture.jpg.
Using external images required additional configuration. Have a look here on how to configure the Unattended Execution Account: http://msdn.microsoft.com/en-us/library/ms156302.aspx
Retrieve external image files that are
used in report. If you want to use an
image file and the file cannot be
accessed through Anonymous access, you
can configure the unattended report
processing account and grant the
account permission to access the file.