Skip to main content
deleted 1 character in body
Source Link
Jaypan
  • 18k
  • 3
  • 34
  • 65

You will not be able to use a route, as /no-js would be its own route. Instead, you should use Url::fromUri. You should be able to use:

Url::fromUri('internal: /profile/publications/' . $user->id() . '/nojs');

You will not be able to use a route, as /no-js would be its own route. Instead, you should use Url::fromUri. You should be able to use:

Url::fromUri('internal: /profile/publications/' . $user->id() . '/nojs');

You will not be able to use a route, as /no-js would be its own route. Instead, you should use Url::fromUri. You should be able to use:

Url::fromUri('internal:/profile/publications/' . $user->id() . '/nojs');
Source Link
Jaypan
  • 18k
  • 3
  • 34
  • 65

You will not be able to use a route, as /no-js would be its own route. Instead, you should use Url::fromUri. You should be able to use:

Url::fromUri('internal: /profile/publications/' . $user->id() . '/nojs');