---
title: "Deprecation: #94058 - JavaScript goToModule()"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-94058"
source: "Changelog/11.3/Deprecation-94058-JavaScriptGoToModule.rst"
typo3-version: "11.3"
typo3-major: 11
type: "deprecation"
issue: 94058
forge: "https://forge.typo3.org/issues/94058"
tags: ["JavaScript", "FullyScanned", "ext:backend"]
rendered: "2026-09-18T17:00:34+00:00"
---

# Deprecation: #94058 - JavaScript goToModule() {#deprecation-94058}

See [forge#94058](https://forge.typo3.org/issues/94058)

## Description {#description}

One of the most prominent inline JavaScript functions
`goToModule()` has been deprecated in favor of a streamlined
ActionHandler API for JavaScript.

## Impact {#impact}

When using the internal backend module entry objects via `setOnClick` and
`getOnClick` methods, PHP deprecation warnings are now triggered.

## Affected Installations {#affected-installations}

TYPO3 installations with custom extensions referencing these methods.

## Migration {#migration}

Use the following HTML code to replace the inline `goToModule()`
call to for example link to the page module:

```html
<a href="#"
   data-dispatch-action="TYPO3.ModuleMenu.showModule"
   data-dispatch-args-list="web_layout"
>
   Go to page module
</a>
```

Inside actual JavaScript code, you can replace calls to `goToModule()`
(or `top.goToModule()`) like this:

**Example for TYPO3 v12+**

```js
// Utilize imports rather than straight usage of TYPO3.ModuleMenu.App.showModule()
import ModuleMenu from '@typo3/backend/module-menu.js';

ModuleMenu.App.showModule('web_layout')
```

**Example for TYPO3 v11**

```js
TYPO3.ModuleMenu.App.showModule('web_layout')
```
