Copied to clipboard

Flag this post as spam?

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


  • hrdfsique 3 posts 23 karma points
    Jan 14, 2014 @ 20:23
    hrdfsique
    0

    Examine Search Indexes and NiceUrl() return 404

    I am coming into this project new and have never experienced Umbraco until now.  The search function wasn't working and I found that the config "name" was incorrect...

    After the search started returning results, I noticed that all of the urls were returning a 404 error.  The url is being built by passing the SearchResult object's Id field into the NiceUrl() method.

    return umbraco.library.NiceUrl(sr.Id);

    From what I can see the url isn't building the full url...

    So... we are using:

    • Umbraco 6.0.4
    • WebForms

    An example would be a url like http://MyDomain/The-Search-Page-You-Are-Looking-For.aspx, when in fact it should be something like this:  http://MyDomain/News/Details/The-Search-Page-You-Are-Looking-For.aspx

    I have gone through hours of postings here as well as the documentation walk through and a couple other helpful blogs on the matter but can not find a solution or anyone else having the same problem.

    One factor I was told is that the website was originally set up with static pages and now is completely generated dynamically...  I checked to see if the index was being written correctly and it is... so now I'm stumped.

    Any Ideas or helpful points in the right direction?

  • hrdfsique 3 posts 23 karma points
    Jan 14, 2014 @ 22:03
    hrdfsique
    0

    It seems that the NiceUrl is creating the url the exact way that is found in the Properties page of a content page that you configure at http://MyDomain/umbraco/umbraco.aspx#content.

    Link to document is /The-Search-Page-You-Are-Looking-For.aspx

    Alternative Links is  http://MyDomain/The-Search-Page-You-Are-Looking-For.aspx

    This page has two parent nodes...

    - about

    - news-details

    The actual page looks like this... http://MyDomain/about/news-details.aspx?newsID=1425

    The alternative link is the same as what the NiceUrl( id ) creates and doesn't work.  How do I get the two parent nodes as well?

  • 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