Usage of Hash in Domain in Enterprise Mode Site List (Angular application)

Ewan Watson 1 Reputation point
2022-06-14T09:19:48.493+00:00

My application is developed in Angular and has # sign in URL.
Let's say my application is hosted on mysamplesite.com so all my urls are in this pattern - https://mysamplesite.com/#/level/first .
Using Internet Explorer mode of Edge, I want to load all parts of application in IE11 except https://mysamplesite.com/#/level/second in Edge.

Here are site entries in sitelist.xml

<site url="mysamplesite.com">

<compat-mode>Default</compat-mode>   

<open-in allow-redirect="true">IE11</open-in>   

</site>

<site url="mysamplesite.com/#/level/second ">

<compat-mode>Default</compat-mode>   

<open-in allow-redirect="true">MSEdge</open-in>   

</site>

I checked edge://compat/enterprise , it ignores the second entry. I tried <site url="mysamplesite.com/*/level/second "> but it displays in edge://compat/enterprise but it doesn't work.

How to introduce # sign in URL in sitelist.xml?

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,425 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XuDong Peng-MSFT 11,011 Reputation points Microsoft Vendor
    2022-06-15T06:55:04.993+00:00

    Hi @Ewan Watson ,

    I checked edge://compat/enterprise , it ignores the second entry. I tried <site url="mysamplesite.com/*/level/second "> but it displays in edge://compat/enterprise but it doesn't work.
    How to introduce # sign in URL in sitelist.xml?

    The Enterprise Mode schema v.2 guidance documentation mentions some considerations about this configuration file that you may have overlooked. It mentions that some symbols(such as *, &) can cause the compatibility list to run unexpectedly.

    I also reproduced your issue, it seems that Edge can not parse urls with the '#' symbol correctly. So I recommend that you modify these in symbols to conform to the specification, and I think this should be work for you. I have tested with some docs sites and it works fine based on your requirement. Something like this:

    ihyWP.png

    Regards,
    Xudong Peng


    If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.