<![CDATA[ getPage Link Not Working - My Forums]]> https://forums.modx.com/thread/?thread=103649 <![CDATA[getPage Link Not Working]]> https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557544
I was making some edits unrelated to getResources / getPage after which the generated links now point to the homepage instead of the individual resource(s). Other than the link issue the getPage call returns the correct results.

Also, I use getPage elsewhere and those links work fine so whatever the problem it seems to only affect the pages where the below call is used.

getPage call
[[!getPage@Pagination?
	&element=`getResources`
	&elementClass=`modSnippet`
	&tpl=`CategoryRow`
	&hideContainers=`1`
	&pageVarKey=`page`
	&parents=`[[*id]]`
	&includeTVs=`1`
	&includeContent=`1`
	&limit=`6`
    &pageLimit=`5`
    &pageNavVar=`page.nav`
]]


The generated link incorrectly points to the homepage.
<a href="[[~[[+id]]]]">[[+pagetitle]]</a>
]]>
todd.b Mar 21, 2018, 05:50 PM https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557544
<![CDATA[Re: getPage Link Not Working]]> https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557553 andytough Mar 21, 2018, 11:24 PM https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557553 <![CDATA[Re: getPage Link Not Working (Best Answer)]]> https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557551
Thanks Andy.]]>
todd.b Mar 21, 2018, 08:36 PM https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557551
<![CDATA[Re: getPage Link Not Working]]> https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557548 Yes, I cleared the cache (core and browser).
Yes, I reattached the pset to the getPage call.]]>
todd.b Mar 21, 2018, 06:54 PM https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557548
<![CDATA[Re: getPage Link Not Working]]> https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557547 cache enabled?

Have you cleared the cache?

Could you post the settings for the property set?

Is the property set still attached to the getPage snippet?]]>
andytough Mar 21, 2018, 06:33 PM https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557547
<![CDATA[Re: getPage Link Not Working]]> https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557546
Also, I'm using
[[getResourceField? &id=`[[UltimateParent]]` &field=`pagetitle`]]

on the same page as the getPage call, albeit for a different purpose. Though I removed it too but still the problem persists.]]>
todd.b Mar 21, 2018, 06:17 PM https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557546
<![CDATA[Re: getPage Link Not Working]]> https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557545 andytough Mar 21, 2018, 06:10 PM https://forums.modx.com/thread/103649/getpage-link-not-working#dis-post-557545