sachatrauwaen / OpenUrlRewriter

Open Url Rewriter for DNN (DotNetNuke)
Other
13 stars 8 forks source link

Module provider URL transform not working anymore #20

Open stephen-lim opened 4 years ago

stephen-lim commented 4 years ago

We have a module that transforms a friendly URL like /page/rvdwktid/topic-12 to /page/topic This works properly on all version of standard DNN 9.1, 9.4 and 9.5.

After installing the OpenUrlRewriter 1.4.4 the module rewrite does not work anymore. We can see that a link gets transformed to /page/topic but upon clicking on it, it does not transform back to necessary query strong form. We traced the code and found that the provider's TransformFriendlyUrlToQueryString() method never gets called to rewrite.

We ran a test with the OpenUrlRewriter on different DNN versions and here is the result of the finding:

On DNN 9.1 it works correctly.

On DNN 9.4 it works but the URL is not optimally rewritten e.g. we get /page/rvdwktid/topic-12 instead of the expected /page/topic

On DNN 9.5 it's completely broken. The module's TransformFriendlyUrlToQueryString() never gets called when the link /page/topic is clicked so it cannot navigate properly.

If we simply switch the web.config back to defaultProvider="DNNFriendlyUrl", it still does not work. Only by uninstalling the OpenUrlRewriter completely that it starts to work correctly again.

Can you please help?

stephen-lim commented 4 years ago

Do you have any news?