Copied to clipboard

Flag this post as spam?

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


  • Jules 192 posts 424 karma points
    Feb 21, 2013 @ 01:51
    Jules
    0

    Sitemap is displaying doubled-up urls

    Hi there

    Have just installed this package but each xml loc node is displaying as

    <url>
    <loc>http://www.brgl.co.ukhttp://www.brgl.co.uk/get-a-quote/</loc>;
    <lastmod>2013-02-01T13:01:13+00:00</lastmod>
    </url>

    Any idea why this is happening?

    Jules

     

  • Jules 192 posts 424 karma points
    Feb 21, 2013 @ 11:51
    Jules
    100

    Have now installed razor version and get a diifererent problem

    Will start another post so please ignore this one.

    Tried to delete this post but no joy.

    Jules

  • Iulia Maria Jensen 40 posts 71 karma points
    Apr 02, 2013 @ 13:50
    Iulia Maria Jensen
    0

    Hi,

    Actually, I would like to hear if there is any solution to this :). 

    I am experiencing the same problem and I am not using razor.

    Does anyone have a suggestion as to what I could do the make it stop showing the doubled-up urls?

  • Jules 192 posts 424 karma points
    Apr 02, 2013 @ 13:59
    Jules
    0

    Whats the structure of your content tree and what version Umbraco are you using?

    I honestly cant remember what I did to cure this but if you tell me a little more about your set up it might jog a memory somewhere

    Jules

  • Jules 192 posts 424 karma points
    Apr 02, 2013 @ 13:59
    Jules
    0

    What's the structure of your content tree and what version Umbraco are you using?

    I honestly cant remember what I did to cure this but if you tell me a little more about your set up it might jog a memory somewhere

    Jules

  • Iulia Maria Jensen 40 posts 71 karma points
    Apr 02, 2013 @ 14:01
    Iulia Maria Jensen
    0

    Hi Jules,

     

    I am using umbraco v 4.8.0 (Assembly version: 1.0.4583.15483).

    The structure looks like this:

    • Site 1 
    • -subpages
    • Site 2
    •      - subpages
    • Site 3 
    •      -subpages
    • Shared content
  • Iulia Maria Jensen 40 posts 71 karma points
    Apr 02, 2013 @ 14:07
    Iulia Maria Jensen
    0

    I can see that if I remove the  <xsl:value-of select="$urlPrefix" /> in the xslt file, it displayes fine.I'm just not sure of what the point of that line is and if I'm ruining some of the logic by doing so. 

    What I mean is that for example, this bit of code seems to output what I want:

                <loc>

                  <!--<xsl:value-of select="$urlPrefix" />-->

                  <xsl:value-of select="umbraco.library:NiceUrl(@id)" />

                </loc>

    But what is the point of that urlPrefix in front of a NiceUrl? What am I missing?

  • Jules 192 posts 424 karma points
    Apr 02, 2013 @ 14:15
    Jules
    0

    Just found this - http://our.umbraco.org/forum/developers/xslt/25155-Double-entries-using-Cultiv-Search-Engine-Sitemap

    As you have a multi site set up - have you set usedomainprefixes to true?

    If so it would seem that NiceUrl (now deprecated in later Umb versions I believe) returns the full url instead of the relative url

    Have you installed the latest version of the sitemap package (better check it is good for 4.8 though)?

    Jules

     

     

  • Iulia Maria Jensen 40 posts 71 karma points
    Apr 02, 2013 @ 14:20
    Iulia Maria Jensen
    0

    Yes, I've stumbled upon that post after I wrote here :). 

    And yes, I do have usedomainprefixes set to true. The setting needs to remain true.

    Yes, exactly. NiceUrl returns the full url. That's why I didn't understand the need for concatenating the domain with the full url...

    But now I understand... it was meant to create the url using the domain + name of the page. 

    Thanks for your explanations! I think I will just go ahead and run my fingers through the code and mold it to fit in with this website's own settings. :)

     

  • Jules 192 posts 424 karma points
    Apr 02, 2013 @ 14:27
    Jules
    0

    might be worth intalling of the latest version of this package as I notice that the razor version is good for 4.5 and above

    http://our.umbraco.org/projects/website-utilities/cultiv-search-engine-sitemap

    Jules

Please Sign in or register to post replies

Write your reply to:

Draft