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...
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?
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
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.
From what I can see the url isn't building the full url...
So... we are using:
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?
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?
is working on a reply...