Revision: 1760
http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1760&view=revAuthor: ian_roberts
Date: 2009-10-27 13:07:35 +0000 (Tue, 27 Oct 2009)
Log Message:
-----------
I was a bit too enthusiastic with the pageURIBase -> pageURI change - slashURI
still wants to be a pageURIBase as it is passed to the redirect method in a
controller, which prepends the context path itself.
Modified Paths:
--------------
trunk/cow/grails-app/services/PageService.groovy
Modified: trunk/cow/grails-app/services/PageService.groovy
===================================================================
--- trunk/cow/grails-app/services/PageService.groovy 2009-10-27 13:05:26 UTC (rev 1759)
+++ trunk/cow/grails-app/services/PageService.groovy 2009-10-27 13:07:35 UTC (rev 1760)
@@ -77,7 +77,10 @@
// directories: find the index if there is one; redirect URI if needed
pm.isDir = pm.pageFile.isDirectory()
if(pm.isDir) {
- pm.slashURI = pageLinkTL.createPageURI(
+ // this one *does* want to be a pageURIBase, as it is used in a
+ // controller redirect call which prepends the context path
+ // automatically.
+ pm.slashURI = pageLinkTL.createPageURIBase(
action: "show", id: pm.id, linkPath: "${pm.pagePath}${slash}"
)
File index = getIndexPage(pm.pageFile)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
gatewiki-commits mailing list
gatewiki-commits@...
https://lists.sourceforge.net/lists/listinfo/gatewiki-commits