Skip to content

Commit 3969530

Browse files
committed
Don't escape baseUrl (fixes #943)
1 parent 80d21f1 commit 3969530

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/views/themes/elements/endpoint.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</div>
1616

1717
<div class="sl-relative">
18-
<div title="{{ rtrim($baseUrl, '/') . '/'. ltrim($endpoint->uri, '/') }}"
18+
<div title="{!! rtrim($baseUrl, '/') . '/'. ltrim($endpoint->uri, '/') !!}"
1919
class="sl-stack sl-stack--horizontal sl-stack--3 sl-inline-flex sl-flex-row sl-items-center sl-max-w-full sl-font-mono sl-py-2 sl-pr-4 sl-bg-canvas-50 sl-rounded-lg"
2020
>
2121
@foreach($endpoint->httpMethods as $method)
@@ -27,7 +27,7 @@ class="sl-stack sl-stack--horizontal sl-stack--3 sl-inline-flex sl-flex-row sl-i
2727
@endforeach
2828
<div class="sl-flex sl-overflow-x-hidden sl-text-lg sl-select-all">
2929
<div dir="rtl"
30-
class="sl-overflow-x-hidden sl-truncate sl-text-muted">{{ rtrim($baseUrl, '/') }}</div>
30+
class="sl-overflow-x-hidden sl-truncate sl-text-muted">{!! rtrim($baseUrl, '/') !!}</div>
3131
<div class="sl-flex-1 sl-font-semibold">/{{ ltrim($endpoint->uri, '/') }}</div>
3232
</div>
3333

resources/views/themes/elements/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
@if($tryItOut['enabled'] ?? true)
2929
<script>
30-
var tryItOutBaseUrl = "{{ $tryItOut['base_url'] ?? $baseUrl }}";
30+
var tryItOutBaseUrl = "{!! $tryItOut['base_url'] ?? $baseUrl !!}";
3131
var useCsrf = Boolean({{ $tryItOut['use_csrf'] ?? null }});
3232
var csrfUrl = "{{ $tryItOut['csrf_url'] ?? null }}";
3333
</script>

0 commit comments

Comments
 (0)