Update TelegramNotifier URL structure and enhance admin support routing
- Modified TelegramNotifier to change the support ticket URL format, using a query parameter for ticket identification. - Enhanced the admin support route to validate search parameters, allowing for ticket-specific navigation from Telegram notifications. - Updated AdminSupportPage to utilize navigation for ticket selection, improving user experience when accessing ticket details.
This commit is contained in:
@@ -51,7 +51,7 @@ internal sealed class TelegramNotifier(ITelegramBotClient botClient, IIdentitySe
|
||||
InlineKeyboardMarkup? keyboard = null;
|
||||
if (!string.IsNullOrWhiteSpace(options.Value.PublicSiteUrl))
|
||||
{
|
||||
var url = $"{options.Value.PublicSiteUrl.TrimEnd('/')}/admin/support/{ticketId}";
|
||||
var url = $"{options.Value.PublicSiteUrl.TrimEnd('/')}/admin/support?ticket={ticketId}";
|
||||
keyboard = new InlineKeyboardMarkup(new[] { InlineKeyboardButton.WithUrl("🌐 Открыть на сайте", url) });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user