[solved] Agile_Hybrid template partially ignoring contextPath (e.g. http://${host}/mingle/*) #699

Subscribe to [solved] Agile_Hybrid template partially ignoring contextPath (e.g. http://${host}/mingle/*) 4 post(s), 3 voice(s)

 
Avatar cameron_walsh 3 post(s) #1820

Using the agile-hybrid templates in Mingle 2.0.1, the links at the top of the screen ‘+Defect +Story +Task’ are fixed rather than relative, linking to:
http://${host}/projects/project_name/cards/new?properties[Type]=Defect
instead of:
http://${host}/mingle/projects/project_name/cards/new?properties[Type]=Defect

Other links do use the contextPath variable and correctly link to /mingle/*

 
Avatar Suzie Prince Administrator 180 post(s) #1822

Hi Cameron

These special headers are actually user controlled content i.e. the links are specified by the user at the project level and not dynamically created by Mingle. In the Agile Hybrid template these links are specified as:

 href="/projects/{{ project }}/cards/new?properties[Type]=Defect"  
which is a direct href to the root and so we would not expect them to work in the alternative context scenario you describe. You should be able fix this by appending /mingle to the links specified on the Special:HeaderActions wiki page.

I hope that helps.

Thanks Suzie

 
Avatar cameron_walsh 3 post(s) #1840

Thanks Suzie, that helps heaps!

 
Avatar myktra 1 post #1926

If you change the contextPath setting, for example when placing Apache in front of Mingle, make sure you invalidate the Page and Card Content Cache (in Advanced Project Admin) for each project. Wiki pages tend to get cached and you will likely find broken links unless you do this.