Hello y’all! I am working with blogs and portfolio items of Umazel package. In Umbraco Properties / “Link to document” URLs both brief and long URLs with nested folders show under blog
https://web.local/blog/posts/blog1/
and portfolio pages
https://web.local/success-stories/story1/
http://web.local/success-stories/page-elements/client-success-stories/portfolio-items/story1/
The main blog page is https://web.local/blog/
and main portfolio page is https://web.local/success-stories/
When I click on the main blog or portfolio page links within a browser the individual brief item URLs by default are
https://web.local/blog/blog1/
https://web.local/success-stories/story1/
I get an error:
“Page not found
No umbraco document matches the url ‘/blog/blog1/’.
This page can be replaced with a custom 404. Check the documentation for “custom 404”.
This page is intentionally left ugly ;-)”
In web.config this code related to virtualnodes is supposed to remove the extra nested URL elements. If I remove virtualnodes line in web.config (there is no space after “<”)
“<
add key=“virtualnode” value=“folderArticlePosts,folderSections,folderPortfolioItems,sectionPortfolio” />”
then instead of the brief URL the long URL with multiple sub-sections is used by default for the blog or portfolio pages and shows in the browser when you click on a blog or portfolio list from their mother page.
When I remove the virtualnode line, then I can view an individual blog or portfolio items and the full URLs which have extra elements in them.
https://web.local/blog/posts/blog1/
http://web.local/success-stories/page-elements/client-success-stories/portfolio-items/story1/
QUESTION 1: Is there a solution to keep the URLs brief?
QUESTION 2: Is there a plan to roll-out the latest Umazel package and would there be a way to transition older websites to the new package?
One of the solutions I tried is within Umbraco to go to
Settings / Document Types / Blog Post List Page / Permissions / add child / Blog Post
Content / Blog / Posts
and then take the individual blog post and move it out of Posts folder to the Blog folder level above to shorten the URL. I assume the same thing can be done with Portfolio items.
MY SET UP: For Portfolio section I am working with Document Type of Portfolio Item Page. I have a webpage under which I added sectionPortfolio.
I do have several websites under the same solution, but they seem to have different document IDs and I do not get a conflicting page error. Within the same solution I have: 2 websites that I am building, default Umazel home page, Umbraco sample website.
I am using Umazel 1.0.5 with Umbraco CMS version 7.5.3 via Nuget packages. For some reason, Umbraco CMS version 7.5.0 DID NOT ALLOW TO SAVE Hostnames in UI.
I looked at other tickets related to blog items and virtualnodes but those solutions do not work for me.
Thanks!
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/101262-blog-and-portfolio-brief-urls-do-not-work-long-do-work