So, on some module we created in the past we generated a friendly url to a detailpage, kind of like this:
string GetDetailLink(ItemInfo objItemInfo) { string detaillink = ""; int tbid = TabId; string Path = "~/default.aspx?tabid=" + TabId + "&itmid=" + Convert.ToString(objItemInfo.ItemId);
DotNetNuke.Entities.Tabs.TabInfo TabInfo = default(DotNetNuke.Entities.Tabs.TabInfo); DotNetNuke.Entities.Tabs.TabController TabController = new DotNetNuke.Entities.Tabs.TabController();
//Retrieve the TabInfo object from the TabId TabInfo = TabController.GetTab(tbid, PortalId, true); detaillink = DotNetNuke.Common.Globals.FriendlyUrl(TabInfo, Path, CleanTitle(objItemInfo.ItemName)); return detaillink; }
So the link would look something like:
www.website.com/pagename/itmid/123/name-of-the-item
which worked nice.
However I noticed the link is generated like this, but when I click on it the DNN Urlrewriter on only some DNN installations will take off the last part, so I end up with:
www.website.com/pagename/itmid/123
In the address bar.
It looks like on some DNN installations it will keep the complete url, and on some installations it will remove the last part. And I wonder why, and what can be done about it. I've tried messing with the SEO settings but I can't figure it out. Perhaps someone knows?!!
Well, I did compare all the regular expressions/settings on the SEO page in DNN, so I think this can not really be the issue. I also checked some different DNN versions, and as far as I can see it is not related to the DNN version. I tried on a DNN 9.9.X and it worked ok, and I tried on a DNN 9.13.3 and it worked ok. It did not work on a DNN 9.11.x version, so I upgraded that to DNN 9.13.4 but it still had the same issue, so I figured it must be some other configuration thing.... That's why I thought, let's try the forum....but what you mentioned I already tried, kind of...
So I think it must be something else..
Seems to be the same, so I have no clue what could be the setting/configuration which causes this behaviour.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.