Entry URIs starting with a hash shouldn't include the URL #17586
-
While it's possible to save sections with Entry URIs as My use case here is a Popups/Modals section from which I'd like content editors to be able to select entries in Link fields, CKEditor fields, or Verbb Navigation nodes. I've set URIs as const popupMatch = hash.match(/^#\[popup\](.+)$/);
if (popupMatch) {
const slug = popupMatch[1];
if (slug) {
this.openPopup(slug);
}
} I'm aware these should ideally be |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can fetch just the URI stored based on your Entry URI Format using |
Beta Was this translation helpful? Give feedback.
Ah, gotcha.
You could override Craft’s default behavior using the
EVENT_BEFORE_DEFINE_URL
event from a custom module: