mirror of
https://github.com/flarum/core.git
synced 2025-08-10 02:17:37 +02:00
Generate URL in the controller instead of the view
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
@extends('flarum.forum::layouts.basic')
|
||||
@inject('url', 'Flarum\Forum\UrlGenerator')
|
||||
|
||||
@section('title', $translator->trans('core.views.log_out.title'))
|
||||
|
||||
@section('content')
|
||||
<p>{{ $translator->trans('core.views.log_out.log_out_confirmation', ['{forum}' => $forumTitle]) }}</p>
|
||||
<p>{{ $translator->trans('core.views.log_out.log_out_confirmation', ['{forum}' => $settings->get('forum_title')]) }}</p>
|
||||
|
||||
<p>
|
||||
<a href="{{ $url->toRoute('logout') }}?token={{ $csrfToken }}@if ($return)&return={{ urlencode($return) }}@endif" class="button">
|
||||
<a href="{{ $url }}" class="button">
|
||||
{{ $translator->trans('core.views.log_out.log_out_button') }}
|
||||
</a>
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user