Copied to clipboard

Flag this post as spam?

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


  • Graham Carr 277 posts 389 karma points
    Feb 22, 2016 @ 10:22
    Graham Carr
    0

    Multi-language Tag and Category Issue

    Hello,

    I am using version 1.0.9 I have a blog under two separate language nodes, such as:

    EN
    ---Blog
    ES
    ---Blog
    

    The Spanish node has two hostnames associated with it, e.g.

    www.exampledomain.com
    exampledomain.com
    

    The English version works perfectly however on the Spanish version if I view a blog post, then click a related category or tag link, I am returned a 404 not found error.

    I should also point out that the any calls to http://www.exampledomain.com or http://exampldomain.com are redirected to https://exampledomain.com via the following redirect (use SSL is set to false in the web.config):

    <add name="redirectWebsiteToHTTPSSpanish"
        redirect="Domain"
        redirectMode="Permanent"
        virtualUrl="^http\://(.*)exampledomain\.com(.*)"
        rewriteUrlParameter="IncludeQueryStringForRewrite"
        destinationUrl="https://exampledomain.com$2"
        ignoreCase="true" />
    

    Do you have any ideas why this might be occurring and what a solution might be?

  • Shannon Deminick 1526 posts 5272 karma points MVP 3x
    Mar 07, 2016 @ 11:47
    Shannon Deminick
    0

    Hi, can you list the category or tag URL that is returning the 404 and the ones that work? And is the category/tag URL that is returning the 404 the same in the html markup as the one that returns the 404 (i.e. is it redirecting to a 404)?

  • Graham Carr 277 posts 389 karma points
    Mar 16, 2016 @ 11:30
    Graham Carr
    0

    Hi Shannon,

    Apologies for the delay in replying to this, I got caught up on another project. Example URLs that work and ones that don't are show below:

    **Work**
    http://atmos.otbdigital.co.uk/blog/categories/Pipeline%20industry    
    http://atmos.otbdigital.co.uk/blog/tags/costa%20rica
    
    **Don't Work**
    http://atmosila.otbdigital.co.uk/blog/categories/Spanish%20Category    
    http://atmosila.otbdigital.co.uk/blog/tags/spanish%20tag
    

    As you can see, the only difference between the two are the domain name. Also it should be noted that I created a separate data type for the Spanish tags and categories.

    Any ideas?

  • Shannon Deminick 1526 posts 5272 karma points MVP 3x
    Mar 17, 2016 @ 09:06
    Shannon Deminick
    0

    Hrm, I'd need to replicate to see what exactly is going on. It looks like you have steps to replicate the issue so it would be best to log an issue on GitHub: https://github.com/shazwazza/articulate/issues with these steps, then I won't forget to look into this and fix for any new releases. Thanks!

  • Graham Carr 277 posts 389 karma points
    Mar 17, 2016 @ 16:55
    Graham Carr
    0

    Thanks Shannon, I have now logged it as an issue on GitHub. In the meantime I will continue to look at/debug the code to see if I can see the issue as well and will update if I find the cause.

  • Graham Carr 277 posts 389 karma points
    Sep 09, 2016 @ 08:38
    Graham Carr
    0

    Hi Shannon,

    Just need to pass something by you again on this issue. I have upgraded to the new version of Umbraco and Articulate.

    The issue I currently have is that to try and get around the original issue, I created two different Category and Tag data types specifically for the Spanish Categories and Tags, and I had altered the GetPostTagCollection and GetAllCategories methods in UmbracoHelperExtensions to determine if the Spanish or English blog was being looked at and then using the correct data type. This was the way in that it didnt work originally and indeed if I do the same in the latest Articulate version I get the same issue with Page Not Found.

    Do I have to stick with just one Category and Tag datatype being used on both the English and Spanish blogs and will it automatically only show the Categories and Tags for the blog version being shown??

    Thanks,

    Graham

  • Shannon Deminick 1526 posts 5272 karma points MVP 3x
    Sep 13, 2016 @ 08:27
    Shannon Deminick
    0

    Hi, are you able to link to the issue you created on GitHub for this (been a while since I've looked at this stuff and need to refresh my memory)

Please Sign in or register to post replies

Write your reply to:

Draft