akvadrako
(Devin Bayer)
7 سبتمبر 2020، 2:57م
1
أنا أستخدم discourse 2.6.0.beta1 مع relative_url_root = /forum ولاحظت مشكلتين.
إحدى المشاكل هي أن عدة روابط، مثل “الأحدث” في الصفحة الرئيسية، تشير إلى /latest بدلاً من /forum/latest. الروابط تعمل، لكن شريط الحالة يعرض القيمة غير الصحيحة عند التمرير عليها.
المشكلة الأخرى هي أنني كنت أحاول معرفة ما إذا كان بإمكاني إنشاء روابط للفئات دون الرقم التتبعي، مثل /forum/c/staff. هذا لا يعمل لأنه يعيد التوجيه إلى /forum/forum/c/staff/3.
هذه ليست مشاكل كبيرة، لكنني اعتقدت أنه يجب أن أبلغ عنها لأنها لا تبدو وكأنها أخطاء معروفة.
4 إعجابات
pfaffman
(Jay Pfaffman)
7 سبتمبر 2020، 3:29م
2
تتسلل مشاكل المجلدات الفرعية أحيانًا. هل أنت على أحدث إصدار؟
إعجاب واحد (1)
akvadrako
(Devin Bayer)
7 سبتمبر 2020، 4:20م
3
لقد قمت للتو بالترقية إلى أحدث إصدار، وألاحظ نفس السلوك.
4 إعجابات
pfaffman
(Jay Pfaffman)
11 سبتمبر 2020، 4:04م
6
أرى روابط تأكيد المسؤول مع تكرار relaztive_url_root في الإصدار 2.5.0.
إعجاب واحد (1)
techAPJ
(Arpit Jalan)
16 سبتمبر 2020، 6:45ص
7
تم الإصلاح عبر:
committed 06:39AM - 16 Sep 20 UTC
https://meta.discourse.org/t/relative-url-root-issues-incorrect-latest-link-inco… rrect-redirect/163266
URLs like `/forum/c/staff` (subfolder setup) were landing on
`/forum/forum/c/staff/3`. Note the extra "/forum". This commit
strips the redundant subfolder path from category URL.
لم أتمكن من تكرار كلتا المشكلتين السابقتين في أحدث إصدار من Discourse.
pfaffman
(Jay Pfaffman)
16 سبتمبر 2020، 2:50م
8
شكرًا لك، أربيت. هؤلاء الأشخاص (الذين لا أدير تثبيتهم) يستخدمون الإصدار 2.5.0. هل يمكنك مساعدتي في فهم أين يتم تعريف confirm_admin_url حتى أتمكن من التأكد من أن الأمر خطأ في نسختهم من ديسكورش؟
This is on 2.5.0.
The admin confirmation URL in the email has subfolder duplicated. like
https://www.example.com/subfolder/subfolder/u/confirm-admin/key.
I’m looking at
it appears to call something called confirm_admin_url, but I can’t find where that’s defined.
I’m not sure where to look to see if it’s a bug or some configuration issue (but this is the only place this problem is showing up).
class AdminConfirmationMailer < ActionMailer::Base
include Email::BuildEmailHelper
def send_email(to_address, target_email, target_username, token)
build_email(
to_address,
template: "admin_confirmation_mailer",
target_email: target_email,
target_username: target_username,
admin_confirm_url: confirm_admin_url(token: token, host: Discourse.base_url),
)
end
end
شكرًا لك.
إعجاب واحد (1)
techAPJ
(Arpit Jalan)
16 سبتمبر 2020، 3:05م
9
This is on 2.5.0.
The admin confirmation URL in the email has subfolder duplicated. like
https://www.example.com/subfolder/subfolder/u/confirm-admin/key.
I’m looking at
it appears to call something called confirm_admin_url, but I can’t find where that’s defined.
I’m not sure where to look to see if it’s a bug or some configuration issue (but this is the only place this problem is showing up).
لقد أجبت للتو على الموضوع أعلاه.
إعجاب واحد (1)