Skip to content

Commit

Permalink
Pass locale to link. closes #591
Browse files Browse the repository at this point in the history
  • Loading branch information
tvlooy committed Nov 25, 2024
1 parent 4608d16 commit a676e29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/Controller/Party/ManagementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ class ManagementController extends AbstractController
{
private TranslatorInterface $translator;

/**
* ManagementController constructor.
*/
public function __construct(TranslatorInterface $translator)
{
$this->translator = $translator;
Expand Down
2 changes: 1 addition & 1 deletion templates/Party/manage/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<script type="text/javascript">
function copyToClipboard(url, obj) {
var fullurl = 'https://' + window.location.hostname;
fullurl += '/participant/' + url + '?utm_source=notification_clipboard&utm_medium=organiser&utm_campaign=participant_invite';
fullurl += '/{{ app.request.locale }}/participant/' + url + '?utm_source=notification_clipboard&utm_medium=organiser&utm_campaign=participant_invite';
var $temp = $("<input>");
$("body").append($temp);
$temp.val(fullurl).select();
Expand Down

0 comments on commit a676e29

Please sign in to comment.