mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fix jump to hash with accents in IV.
This commit is contained in:
parent
fd833dff35
commit
b97d243978
2 changed files with 3 additions and 2 deletions
|
@ -42,7 +42,7 @@ var IV = {
|
|||
} else if (target.hash.length < 2) {
|
||||
IV.jumpToHash('');
|
||||
} else {
|
||||
IV.jumpToHash(target.hash.substr(1));
|
||||
IV.jumpToHash(decodeURIComponent(target.hash.substr(1)));
|
||||
}
|
||||
e.preventDefault();
|
||||
},
|
||||
|
|
|
@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "base/platform/base_platform_info.h"
|
||||
#include "base/invoke_queued.h"
|
||||
#include "base/qt_signal_producer.h"
|
||||
#include "base/qthelp_url.h"
|
||||
#include "iv/iv_data.h"
|
||||
#include "lang/lang_keys.h"
|
||||
#include "ui/platform/ui_platform_window_title.h"
|
||||
|
@ -615,7 +616,7 @@ QByteArray Controller::navigateScript(int index, const QString &hash) {
|
|||
return "IV.navigateTo("
|
||||
+ QByteArray::number(index)
|
||||
+ ", '"
|
||||
+ EscapeForScriptString(hash.toUtf8())
|
||||
+ EscapeForScriptString(qthelp::url_decode(hash).toUtf8())
|
||||
+ "');";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue