I developed a custom mesh control that uses the data-* attributes to customize the mesh (in the same way as the components of the Bootstrap data API component). For a specific deployment, I need to proxy my web application to another web application using IIS and application request routing (ARR) + URL Rewrite. The proxy part has been completed, I'm currently trying to configure outgoing rules for rewriting URLs. For example, I have rules, for example:
- Rewrite the HTTP redirects by updating the
Location: header. - Rewrite the Html content for the URI in standard tags (e.g. A, Area, base, etc.).
- Rewrite the Css contents for URIs that are relative (e.g. / cassette.axd → /blog/cassette.axd).
The last problem I ran into is that the rewrite URL module accepts my URLs in data attributes, for example if my grid is like this:
<table data-grid data-query="/api/users/">
Should be rewritten as
<table data-grid data-query="/blog/api/users/">
I emphasize that all other tags such as <a href and <img src work properly, and even the custom <property value tag is correctly rewritten. This seems to be due to negative attributes.
I tried to add a <customTags> section with my custom tags in:
<customTags> <tags name="Bootgrid"> <tag name="table" attribute="data-query" /> <tag name="table" attribute="data-update" /> <tag name="property" attribute="value" /> </tags> </customTags>
However, the above does not match hyphenated attributes. Not sure if this is really solvable or not, because I don't see anything in the IIS configuration to install them.
Also annoying, once you have created a set of custom tags in IIS, you cannot edit them again .: - /
source share