Translating A Node Overwrites Default Language URL Alias On Save

Hi,

I have an issue plaguing my site, when a user translates a page (and saves it), the url alias overwrites English (my default language).

EX:

  • About page is created (english) = /about
  • About page is translated (spanish) = /sobre
  • URL alias for English /about is now /sobre
  • Navigating to /admin/config/search/path, I revert /sobre to Spanish
  • The site needs cache flushed to fix the URL on the site (ie: menu item still shows /sobre for english, and /node/# for spanish until flushed)
  • Furthermore, when translating the About page (french) with no url alias. /sobre (spanish) then again overwrites /about (english)

Additionally, in my DB I only see English URL alias’s under the “url_alias” table. I do not see any of my spanish aliases listed here (not sure if that is an issue).

The below code is reported every time a page is translated.

Notice: Undefined index: 
#value in DrupalnodeNodeTranslationHandler->entityFormAlter() (line 44 of /var/www/html/drupal-dev/docroot/core/modules/node/src/NodeTranslationHandler.php) 
#0 /var/www/html/drupal-dev/docroot/core/includes/bootstrap.inc(566): _drupal_error_handler_real(8, 'Undefined index...', '/var/www/html/r...', 44, Array) 
#1 /var/www/html/drupal-dev/docroot/core/modules/node/src/NodeTranslationHandler.php(44): _drupal_error_handler(8, 'Undefined index...', '/var/www/html/r...', 44, Array) 
#2 /var/www/html/drupal-dev/docroot/core/modules/content_translation/content_translation.module(304): DrupalnodeNodeTranslationHandler->entityFormAlter(Array, Object(DrupalCoreFormFormState), Object(DrupalnodeEntityNode)) 
#3 /var/www/html/drupal-dev/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(501): content_translation_form_alter(Array, Object(DrupalCoreFormFormState), 'node_page_edit_...') 
#4 /var/www/html/drupal-dev/docroot/core/lib/Drupal/Core/Form/FormBuilder.php(819): DrupalCoreExtensionModuleHandler->alter(Array, Array, Object(DrupalCoreFormFormState), 'node_page_edit_...') 
#5 /var/www/html/drupal-dev/docroot/core/lib/Drupal/Core/Form/FormBuilder.php(272): DrupalCoreFormFormBuilder->prepareForm('node_page_edit_...', Array, Object(DrupalCoreFormFormState)) 
#6 /var/www/html/drupal-dev/docroot/core/lib/Drupal/Core/Controller/FormController.php(74): DrupalCoreFormFormBuilder->buildForm(Object(Drupallightning_workflowFormNodeForm), Object(DrupalCoreFormFormState)) 
#7 [internal function]: DrupalCoreControllerFormController->getContentResult(Object(SymfonyComponentHttpFoundationRequest), Object(DrupalCoreRoutingRouteMatch)) 
#8 /var/www/html/drupal-dev/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) 
#9 /var/www/html/drupal-dev/docroot/core/lib/Drupal/Core/Render/Renderer.php(574): DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}() 
#10 /var/www/html/drupal-dev/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): DrupalCoreRenderRenderer->executeInRenderContext(Object(DrupalCoreRenderRenderContext), Object(Closure)) 
#11 /var/www/html/drupal-dev/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) 
#12 [internal function]: DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}() 
#13 /var/www/html/drupal-dev/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Object(Closure), Array) 
#14 /var/www/html/drupal-dev/vendor/symfony/http-kernel/HttpKernel.php(64): SymfonyComponentHttpKernelHttpKernel->handleRaw(Object(SymfonyComponentHttpFoundationRequest), 1) 
#15 /var/www/html/drupal-dev/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(57): SymfonyComponentHttpKernelHttpKernel->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) 
#16 /var/www/html/drupal-dev/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): DrupalCoreStackMiddlewareSession->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) 
#17 /var/www/html/drupal-dev/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): DrupalCoreStackMiddlewareKernelPreHandle->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) 
#18 /var/www/html/drupal-dev/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupalpage_cacheStackMiddlewarePageCache->pass(Object(SymfonyComponentHttpFoundationRequest), 1, true) 
#19 /var/www/html/drupal-dev/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupalpage_cacheStackMiddlewarePageCache->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) 
#20 /var/www/html/drupal-dev/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): DrupalCoreStackMiddlewareReverseProxyMiddleware->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) 
#21 /var/www/html/drupal-dev/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): DrupalCoreStackMiddlewareNegotiationMiddleware->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) 
#22 /var/www/html/drupal-dev/docroot/core/lib/Drupal/Core/DrupalKernel.php(656): StackStackedHttpKernel->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true) 
#23 /var/www/html/drupal-dev/docroot/index.php(19): DrupalCoreDrupalKernel->handle(Object(SymfonyComponentHttpFoundationRequest)) 
#24 {main}.

Drupal Version: 8.3.5
PHP Version: 5.6.3
Installation Profile: Lightning-8.x-2.16
All modules up to date

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/30/feed