You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has worked, if I visit the page, the "organiser" part of the URL isn't there.
I have a repository which I use to get node by slug, which looks like this:
using Example.Core.Repositories.Interfaces;
using Umbraco.Cms.Core.Models.PublishedContent;
using Umbraco.Cms.Core.Web;
namespace Example.Core.Services;
public class ContentRepository : IContentRepository
{
private readonly IUmbracoContext? _umbracoContext;
public ContentRepository(IUmbracoContextAccessor umbracoContextAccessor)
{
umbracoContextAccessor.TryGetUmbracoContext(out _umbracoContext);
}
public IPublishedContent? GetByRoute(string route)
{
if (_umbracoContext != null && _umbracoContext.Content != null)
{
return _umbracoContext.Content.GetByRoute(route);
}
return null;
}
}
Unfortunately this doesn't work, the node doesn't appear to be available on it's "original" URL, nor the updated URL after Skipper had done it's work.
Bit of a killer for me if this doesn't work as I don't think I have another way to get content. Any thoughts, ideas, or plugin improvements would be hugely welcomed.
Thanks,
Ben
The text was updated successfully, but these errors were encountered:
Hey,
Excellent plugin but I'm running into an issue with a headless website build where I retrieve page nodes using their slug.
I've created an "Organiser" doc type and configured for Skipper to hide the URL segment, like so:
This has worked, if I visit the page, the "organiser" part of the URL isn't there.
I have a repository which I use to get node by slug, which looks like this:
Unfortunately this doesn't work, the node doesn't appear to be available on it's "original" URL, nor the updated URL after Skipper had done it's work.
Bit of a killer for me if this doesn't work as I don't think I have another way to get content. Any thoughts, ideas, or plugin improvements would be hugely welcomed.
Thanks,
Ben
The text was updated successfully, but these errors were encountered: