Skip to content
Snippets Groups Projects

Ensure setEditorEntity doesn't start with two leading slashes

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -52,7 +52,7 @@ export function useNavigationUtils() {
// @todo revisit approach (like using routing) in https://www.drupal.org/i/3502887
const setEditorEntity = useCallback(
(entityType: string, entityId: string) => {
window.location.href = `${baseUrl}/xb/${entityType}/${entityId}`;
window.location.href = `${baseUrl}xb/${entityType}/${entityId}`;
},
[baseUrl],
);
Loading