Platform orders index: use BackUrl for current subscription link

This commit is contained in:
萝卜
2026-03-14 23:12:52 +00:00
parent 918dc8035e
commit 04e49ebbe0

View File

@@ -81,10 +81,11 @@
<div class="muted">当前已锁定订阅:</div> <div class="muted">当前已锁定订阅:</div>
<div> <div>
@php @php
$subShowUrl = '/admin/site-subscriptions/' . $currentSubscription->id; // 订阅详情链接:附带 back 回到本页(剔除 back避免嵌套膨胀并统一走 BackUrl helper。
$subShowUrl .= '?' . \Illuminate\Support\Arr::query([ $subShowUrl = \App\Support\BackUrl::withBack(
'back' => $selfWithoutBack, '/admin/site-subscriptions/' . $currentSubscription->id,
]); $selfWithoutBack
);
@endphp @endphp
<a class="link" href="{!! $subShowUrl !!}">{{ $currentSubscription->subscription_no }}</a> <a class="link" href="{!! $subShowUrl !!}">{{ $currentSubscription->subscription_no }}</a>
<span class="muted">订阅ID{{ $currentSubscription->id }}</span> <span class="muted">订阅ID{{ $currentSubscription->id }}</span>