Details
-
Bug
-
Status: Closed
-
Top
-
Resolution: Fixed
-
None
-
None
Description
The execution order doesn't follow the configuration order of sitemap item handlers (hst:sitemapitemhandlerids) for a sitemap item is not kept as ordered.
For example, if I set sitemap item handlers, A and B for a sitemap item, the sitemap item handler of A must be executed before B. (As an example, A sets some response headers on some condition and B sends redirects. If the order is not kept and so B is invoked before A, then A won't be invoked at all.)
However, the order is not guaranteed currently. The reason is the internal sitemapitem handler map inside HstSiteMapItemService is type of HashMap and the getter method uses #values().