Skip to content

Commit

Permalink
Merge branch 'papnoisanjeev-redirection-update-clicking-on-error-page…
Browse files Browse the repository at this point in the history
…-logo' into 1.1
  • Loading branch information
Akshay Kumar committed Oct 12, 2022
2 parents 59e1e20 + a9ac17a commit c098eba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions templates/errors/error.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@
<body>
{% set websiteDetails = user_service.getWebsiteDetails('knowledgebase') %}
{% set currentPath = app.request.schemeAndHttpHost ~ app.request.requestUri %}

{% set currentPrefix = uvdesk_service.getUrlPrefix() %}

<div class="uv-box-server-error">
<div class="uv-box-server-error-lt">
{% if websiteDetails %}
<a class="uv-logo" href="{{ path('helpdesk_member_handle_login') }}">
<a class="uv-logo" href="{{ currentPrefix in currentPath ? (websiteDetails ? path('helpdesk_member_dashboard') : app.request.scheme ~'://' ~ app.request.httpHost ) : path('helpdesk_customer_login')}}">
{% if websiteDetails.logo %}
<img src="{{ app.request.scheme ~'://' ~ app.request.httpHost ~ asset('') }}{{ websiteDetails.logo }}" title="{{ websiteDetails.name }}">
{% else %}
Expand Down Expand Up @@ -137,5 +137,4 @@
</div>
</div>
</body>
</html>

</html>

0 comments on commit c098eba

Please sign in to comment.