URL Management change on DNN 7.1+

Issue description 

After upgrading DNN, when navigating to another page using the persona bar, the resulting URL jumps one directory above the intended destination, often returning a non-existent page.

 

Solution 

In sites upgraded from DNN 7 and earlier, the default configuration for URL management is set to use the "humanfriendly" mode of the Url Rewriter / Friendly Url Provider. This has changed in version 7.1 and above, to use the "advanced" mode.

Below is a description of the procedure to change your environment to the advanced mode.

We encourage you to test it in your test environment before applying it to production. 

  1. Backup your site folder in your test environment.
  2. Open the web.config file, and search for "urlformat". You should find this in a section, like this:
    <add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]" urlFormat="humanfriendly" />
  3. Change the urlFormat value to "advanced", like this:
    <add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]" urlFormat="advanced" />
  4. Save the web.config file. This will trigger an IIS AppPool restart.
  5. Request the home page of the new site - the site is now using the Advanced URL Format.
  6. Fully test the site to ensure it is operating as expected. If any issues are found, restore the web.config file from backup and contact support. 

 

Comments

0 comments

Please sign in to leave a comment.