GithubHelp home page GithubHelp logo

openurlrewriter's People

Contributors

robsiera avatar sachatrauwaen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openurlrewriter's Issues

Any chance to make it compatible with latest DNN 9.6.2

Hi, I love this module, it come on with very useful providers!
It is one of the fundamental modules that I use for my work!
The problem is that with latest DNN 9.6.2 and with 2SXC 11.04.00 it give me some problem.
https://github.com/dnnsoftware/Dnn.Platform/issues/3816
https://github.com/2sic/2sxc/issues/2144
Is there any possibility of making a new release with the necessary corrections to make this module compatible again with these latest versions?

Install version is the same of Source code version?

Hi,
Installing latest OpenUrlRewriter71_01.04.04_Install.zip and all seem to work fine, host extension is opened well with http://mywebsite/host/extensions?portalid=1
After installed OpenUrlRewriter71_01.04.04_Install.zip if I open OpenUrlRewriter71_01.04.04_Source.zip and recompile the dll without any modification and all work fine except for all host menu, for example host extension is opened with url http://mywebsite/host/extensions/portalid/1 with 404 page not found.
If I replace the dll with install version all resume to work fine.
There are some difference between Installand source version? How is it possible if they have the same source code?
Could be a target framework issue? I'm compiling with target 4.5.2

DNN 9.10 functions?

I'd like to know if the module works on the most recent DNN - 9.11+ - specifically along with the Sql_OpenUrlRewriter module

I rely on this for decent indexing and would love to help upgrade or test if needed.

Module provider URL transform not working anymore

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?

Lot of event errors log (UrlRewriter.UrlRuleConfig:GetConfig Failed)

Hi,
looking at event log I can see a lot of errors log from UrlRewriter.UrlRuleConfig: GetConfig whit error message "Null object cannot be converted to a value type."
Looking moore deep it look something linked to Ventrian PA Open Url Rewrite provider but with exception fired to OpenUrlRewriter.
So I decided to debug the code to find where the problem could be.
The problem is on AddUrlRule in UrlRuleController.cs
Here is defined the function AddUrlRule with DotNetNuke.Data.DataProvider.Instance().ExecuteScalarDB call
The problem is that it can't be converted to an Int32, as integers are value types and cannot be null. Either check the return value for DbNull and return a default value from your data layer, or check your query and database to ensure that a null will not be returned.
This fired all exceptions.
There are much ways to fix this, below my solution:

public static int AddUrlRule(UrlRuleInfo objUrlRule)
        {
            object result = DotNetNuke.Data.DataProvider.Instance().ExecuteScalar(ModuleQualifier + "AddUrlRule",
                                          objUrlRule.DateTime,
                                          objUrlRule.UserId,
                                          objUrlRule.RuleType,
                                          GetNull(objUrlRule.CultureCode),
                                          objUrlRule.PortalId,
                                          GetNull(objUrlRule.TabId),
                                          GetNull(objUrlRule.Parameters),
                                          objUrlRule.RemoveTab,
                                          objUrlRule.RuleAction,
                                          GetNull(objUrlRule.Url),
                                          GetNull(objUrlRule.RedirectDestination),
                                          GetNull(objUrlRule.RedirectStatus)
                                        );
            if (result == DBNull.Value)
            {
                return 0;
            }
            else
            {
                return Convert.ToInt32(result);
            }
            


        }

Please @sachatrauwaen if you can fix on the next release.
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.