Greetings,
I have a module that imports from a .chm file and creates pages in the same structure as the imported .chm file. As chm files can have empty pages that redirect (or show content from) the first child with content, so have my pages been created. Each page that represents a chm tree item that does not have content is redirected to the first child page with content (TabInfo.Url = TabId, TabInfo.PermanentRedirect = true). This works fine.
But, as I have to continuously fine tune the import (trial and error), I have to delete the child pages and start all over with the import from the base (root) page from which I originally started the import.
Even if I comment out the page redirect section in my code and don't create those redirects, as soon as the pages are imported, they still contain the previous redirects (the subsequent import creates exactly the same page/tree structure). In fact, if I go to Page Settings and clear the redirect (and even double check the URL and PermanentRedirect columns of the Tabs table), those redirects are still in effect. Clicking on a root that has no HTML module (how I define if a page requires a redirect - if not content on import, no HTML module is added) on a page that in Page Settings does not have a redirect, it still navigates to the first child with content.
I've:
- Cleared the Cache
- Restarted the Application
- Restarted IIS (iisreset)
- Recycled the App Pool
- Made sure deleted pages were permanently deleted (cleared Recycle Bin)
- Double checked the URL and PermanentRedirect columns of the Tabs table
And nothing seems to work. It's as if the cache really isn't being cleared. The only thing that will clear out all the links is if I delete the root page (my module will delete all child pages from where it is placed -- only requiring a clearing of the Recycle Bin).
DNN version 7.0.3
Creating a new redirect:
currentTab.Url = nextPage.TabID.ToString();
currentTab.PermanentRedirect = true;
TabController tc = new TabController();
tc.UpdateTab(currentTab);
Any idea why a page with no redirect that previously had a redirect is still redirecting?
Thanks in advance.
G