From a29c88fe788539461d5a3e462d2014a547b95e4d Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Mon, 2 Feb 2026 18:50:43 +0100 Subject: [PATCH] Profiler/Fixup * fix Profile tooltips not loading if the triggering url wasn't entirely in lowercase --- endpoints/profile/profile_power.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/endpoints/profile/profile_power.php b/endpoints/profile/profile_power.php index 6b8a94ec..4d5b632b 100644 --- a/endpoints/profile/profile_power.php +++ b/endpoints/profile/profile_power.php @@ -19,7 +19,7 @@ class ProfilePowerResponse extends TextResponse implements ICache 'domain' => ['filter' => FILTER_CALLBACK, 'options' => [Locale::class, 'tryFromDomain']] ); - public function __construct(string $rawParam) + public function __construct(private string $rawParam) { parent::__construct($rawParam); @@ -75,8 +75,9 @@ class ProfilePowerResponse extends TextResponse implements ICache if ($_ = $profile->getField('renameItr')) $ri = '-'.$_; + // the 'id' must be exactly as the js requested it or the tooltip won't register if ($this->subjectName) - $id = implode('.', [$this->region, Profiler::urlize($this->realm, true), urlencode($this->subjectName) . ($ri ?? '')]); + $id = urlencode($this->rawParam) . ($ri ?? ''); else $id = $this->typeId;