Open MikeTschudi opened 3 years ago
I believe this intended behavior as the Hub app supports renaming the solution when activated. So they want to use the variable so that the site gets the new name when activated. In most of our solutions we just go in and change it from this variable to the name we want to pass when deployed.
@chris-fox @MikeTschudi
Is this worth revisiting with the new hub.js updates we're putting in?
We manually hardcode the name after creating the solution item. This adds an extra step which could be done incorrectly. It may be worth our time to add this in.
Yes, we should discuss with the Hub team.
@dbouwman, what do you think? We always have to go in an remove the {{solution.title}} variable and replace with the hardcoded name for the site. Anyway we could support our different use cases between solutions and Hub?
If Hub uses convertSiteToTemplate
from @esri/hub-sites
to templatize a Hub site rather than convertItemToTemplate
from @esri/solution-hub-types
, then we can solve this with some post-processing in the latter.
HSA 809404b50ccb423b8557f3d9c7cadcbc has the title "Emergency Response", but when it is put into a Solution, its
item.title
anddata.title
properties have the value "{{solution.title}}".The title returns when the Solution is deployed.
This problem exists as far back as v0.16.9 with this item.