diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php
index 3954212..58f0320 100644
--- a/resources/views/admin/platform_orders/index.blade.php
+++ b/resources/views/admin/platform_orders/index.blade.php
@@ -713,9 +713,9 @@
diff --git a/tests/Feature/AdminPlatformOrderIndexSummaryRefundStatusLinksShouldHaveDataRoleAndKeepBackTest.php b/tests/Feature/AdminPlatformOrderIndexSummaryRefundStatusLinksShouldHaveDataRoleAndKeepBackTest.php
new file mode 100644
index 0000000..a27a9e6
--- /dev/null
+++ b/tests/Feature/AdminPlatformOrderIndexSummaryRefundStatusLinksShouldHaveDataRoleAndKeepBackTest.php
@@ -0,0 +1,65 @@
+seed();
+
+ $this->post('/admin/login', [
+ 'email' => 'platform.admin@demo.local',
+ 'password' => 'Platform@123456',
+ ])->assertRedirect('/admin');
+ }
+
+ public function test_platform_orders_index_summary_refund_status_links_should_have_data_role_and_keep_back(): void
+ {
+ $this->loginAsPlatformAdmin();
+
+ $res = $this->get('/admin/platform-orders?merchant_id=1&back=/admin&page=2');
+ $res->assertOk();
+
+ $html = (string) $res->getContent();
+
+ $cases = [
+ [
+ 'role' => 'po-summary-link-partially-refunded-orders',
+ 'expect' => ['payment_status' => 'partially_refunded'],
+ ],
+ [
+ 'role' => 'po-summary-link-refunded-orders',
+ 'expect' => ['payment_status' => 'refunded'],
+ ],
+ ];
+
+ foreach ($cases as $c) {
+ $role = (string) ($c['role'] ?? '');
+ $this->assertNotSame('', $role);
+
+ $re = '/
]*data-role="' . preg_quote($role, '/') . '"[^>]*href="([^"]+)"/u';
+ $this->assertMatchesRegularExpression($re, $html);
+ preg_match($re, $html, $m);
+
+ $rawHref = (string) ($m[1] ?? '');
+ $this->assertStringNotContainsString('&back=', $rawHref);
+
+ $href = html_entity_decode($rawHref);
+ $query = parse_url($href, PHP_URL_QUERY) ?: '';
+ parse_str($query, $q);
+
+ foreach (($c['expect'] ?? []) as $k => $v) {
+ $this->assertSame((string) $v, (string) ($q[$k] ?? ''), $role . ' missing expected ' . $k);
+ }
+
+ $this->assertSame('/admin', (string) ($q['back'] ?? ''));
+ $this->assertArrayNotHasKey('page', $q);
+ }
+ }
+}