Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christian Ginnerup 3 posts 24 karma points
    Oct 07, 2013 @ 09:12
    Christian Ginnerup
    1

    Plus sign (+) in the url won't work

    Hi there,

    Anybody have an idea how to get 301 tracker to understand this url:

    /something/several+words+from+synkron+via+site

    It seems like the plus sign is translated somehow?!

  • Michael Nielsen 82 posts 361 karma points
    Dec 09, 2013 @ 12:57
    Michael Nielsen
    0

    I'm having an issue with plus signs (+) also.

    I tried to upgrade to the latest version of the tracker, but that did not help.

    I'm getting the following error

     

    Server Error in '/' Application.


    Value cannot be null.
    Parameter name: umbracoContext

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentNullException: Value cannot be null.
    Parameter name: umbracoContext

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [ArgumentNullException: Value cannot be null.
    Parameter name: umbracoContext]
       Umbraco.Web.UmbracoHelper..ctor(UmbracoContext umbracoContext) +134
       InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerDomain.get_UrlWithDomain() in c:\Users\kipusoep\Documents\GitHub\UrlTracker\Models\UrlTrackerDomain.cs:20
       InfoCaster.Umbraco.UrlTracker.Modules.<>c__DisplayClass2.<context_EndRequest>b__0(UrlTrackerDomain x) in c:\Users\kipusoep\Documents\GitHub\UrlTracker\Modules\UrlTrackerModule.cs:89
       System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source, Func`2 predicate) +173
       InfoCaster.Umbraco.UrlTracker.Modules.UrlTrackerModule.context_EndRequest(Object sender, EventArgs e) in c:\Users\kipusoep\Documents\GitHub\UrlTracker\Modules\UrlTrackerModule.cs:90
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1008

  • Kyle 24 posts 63 karma points
    Mar 04, 2014 @ 11:20
    Kyle
    0

    Hi,

    I had the same issue with exactly the same error message as above.

    The plus sign + does work with URL Tracker it's IIS that's stopping it. I read through this article (http://serverfault.com/questions/76013/iis6-vs-iis7-and-iis7-5-handling-urls-with-plus-sign-in-base-not-querystr) and solved it by adding the following code to my web.config.

    In the <system.webServer> section add:

    <security>
      <requestFiltering allowDoubleEscaping="True" />
    </security>
    <rewrite>
      <rules>
        <rule name="RewriteUserFriendlyURL1" stopProcessing="false">
          <match url="\+" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
          </conditions>
          <action type="Rewrite" url="{UrlDecode:{REQUEST_URI}}" />
        </rule>
      </rules>
    </rewrite>
    

    Cheers,

    Kyle

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies