When matching a URL based on a part that is not in the host address, the extension fails to remove the banner when the host stays the same and the matching part no longer exists.
Steps to reproduce the behavior:
- Go to Power Platform Admin Centre
- Add a regex rule to match an environment GUID (e.g. 'regex:.12ab34cd-abcd-1234-abcd-12ab34cd56ef.' from the address 'https://admin.powerplatform.microsoft.com/manage/environments/environment/12ab34cd-abcd-1234-abcd-12ab34cd56ef')
- Click on Environments
- Click on the related environment
- Note the banner appears as it matches the GUID in the URL
- Go back to all 'Environments'
- Note that the banner stays even though the GUID is no longer in the URL
Expected behavior:
The banner should disappear as soon as the URL part is no longer in the URL.
Information:
- OS: Win 11
- Browser: Edge
- Browser Version: 143.0.3650.139 (Official build) (64-bit)
- Extension Version: v3.0.1
Additional context:
An example of an extension that handles these URL part changes correctly is URLColors.
When matching a URL based on a part that is not in the host address, the extension fails to remove the banner when the host stays the same and the matching part no longer exists.
Steps to reproduce the behavior:
Expected behavior:
The banner should disappear as soon as the URL part is no longer in the URL.
Information:
Additional context:
An example of an extension that handles these URL part changes correctly is URLColors.