Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
A possible way out might be like this - $nolink_url = Url::fromUserInput('#', ['fragment' => '#', 'attributes' => ['onclick' => 'return false']]); Though this would not put a javascript: void(0) in place, but will stop the jump to the top which was my actual requirement. :)
I have this issue in any and every place I try to save a term. Be it from ui or programmatically. The higher the term in hierarchy, the more time it takes.
It is the same in both cases I can see. The default timezone is specified as UTC. But one is saving in UTC converted form and another in as entered form. Please find the attached screenshot of the page.