بمجرد النقر على إعدادات المسؤول، أحصل دائمًا على هذا الخطأ عند العودة إلى المنتديات.
تحرير: الشيء الوحيد الذي تغير هو الانتقال إلى اسم نطاق جديد. (والذي تم بنجاح باستثناء هذا الخطأ أعلاه)
أين يمكنني العثور على السجلات/سبب هذا الخطأ؟
تحرير:
وجدت هذا في أداة الفحص:
للتجربة، قمت بإلغاء تثبيت جميع السمات (1 إضافية) والمكونات (3) وأزلت Cloudflare (تم تجاوز جميع ملفات .js بالفعل باستخدام قواعد ذاكرة التخزين المؤقت ولكن للتأكد قمت بإزالتها مؤقتًا) ثم اختبرت في وضع التصفح المتخفي. ولكن نفس النتيجة
تحديث:
اختبرت مع تمكين الوضع الآمن. (تم تحديد جميع المربعات الثلاثة) ولا يزال نفس الخطأ:
يحدث عند النقر على المسؤول > الإعدادات والنقر على الصفحة الرئيسية.
إعجابَين (2)
على أي حال، يمكنني إعادة إنتاج هذا:
انتقل إلى المسؤول → الإعدادات
انتقل إلى الصفحة الرئيسية
“خطأ، حدث خطأ ما”.
على تثبيتين حديثين للإنتاج تم ترقيتهما
إعجابَين (2)
آه حسناً. شكراً للتأكيد. كنت أعتقد حقاً أنه كالعادة، أنا من أفسدت شيئاً ما!
إعجاب واحد (1)
نعم، يمكنني تأكيد ذلك أيضًا.
مقدم هنا:
main ← homepage-url-handling
opened 08:13PM - 14 Nov 23 UTC
We want / to display one of our discovery routes/controllers, but we don't want … to register it as `discovery.index` because that would break themes/plugins which check the route name. Previously, this was handled using a variety of approaches throughout the codebase (in discourse-location, discourse-url and mapping-router). But even then, it didn't work consistently. For example, if you used an Ember method like `router.transitionTo("/")`, an empty `discovery.index` page would be rendered.
This commit switches up the approach. `discovery.index` is now defined as a real route, and redirects to the desired homepage. To preserve the `/` as a 'vanity url', we patch the method on the router responsible for persisting URLs to the Ember Router and the browser. The patch identifies a relevant transition by looking for a magic query parameter.
In an ideal world, we wouldn't be patching the router at all. But at least with this commit, the workaround is all in one place, and works consistently for all navigation methods.
ويحدث الخطأ هنا:
import { homepageDestination } from "discourse/lib/homepage-router-overrides";
import { disableImplicitInjections } from "discourse/lib/implicit-injections";
import DiscourseRoute from "./discourse";
@disableImplicitInjections
export default class DiscoveryIndex extends DiscourseRoute {
@service router;
beforeModel(transition) {
const url = transition.intent.url;
const params = url.split("?", 2)[1];
let destination = homepageDestination();
if (params) {
destination += `&${params}`;
}
this.router.transitionTo(destination);
}
}
يبدو أن حقل `url` مفقود
ويبدو أنه يحدث فقط عندما يكون urlMethod هو replaceURL.
5 إعجابات
david
(David Taylor)
20 نوفمبر 2023، 3:25م
8
شكرا للجميع - يجب أن يكون هذا تم إصلاحه في tests-passed الآن. @haydenjames إذا قمت بتشغيل تحديث (إما عبر /admin/upgrade، أو عبر وحدة التحكم)، فيجب أن تعمل الأمور بشكل أفضل بكثير.
5 إعجابات
david
(David Taylor)
تم إغلاقه في
21 نوفمبر 2023، 8:00ص
11
تم إغلاق هذا الموضوع تلقائيًا بعد 16 ساعة. لم تعد الردود الجديدة مسموح بها.