We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b6ea76a + f068243 commit 849eb67Copy full SHA for 849eb67
1 file changed
src/Handler/EmbeddedShortcodeHandler.php
@@ -63,7 +63,7 @@ public function __invoke(ShortcodeInterface $shortcode)
63
'parameters' => json_encode($shortcode->getParameters()),
64
'renderer' => $this->renderer,
65
'shortcode' => $shortcode->getName(),
66
- 'url' => $this->requestStack->getMasterRequest()->getRequestUri(),
+ 'url' => $this->requestStack->getMasterRequest() ? $this->requestStack->getMasterRequest()->getRequestUri() : '-',
67
]
68
);
69
0 commit comments