Use the fragment identifier instead of query parameters to convey the editor/verbose/treeview data id

This fixes the issue Multicraft panels have with displaying ? characters in console. (absolute quality)
This commit is contained in:
Luck 2018-10-28 22:32:02 +00:00
parent aaeaf5cfa0
commit 42c8cb1354
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
4 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ public class HolderEditor<T extends PermissionHolder> extends SubCommand<T> {
}
// form a url for the editor
String url = plugin.getConfiguration().get(ConfigKeys.WEB_EDITOR_URL_PATTERN) + "?" + pasteId;
String url = plugin.getConfiguration().get(ConfigKeys.WEB_EDITOR_URL_PATTERN) + "#" + pasteId;
Message.EDITOR_URL.send(sender);

View File

@ -114,7 +114,7 @@ public class EditorCommand extends SingleCommand {
}
// form a url for the editor
String url = plugin.getConfiguration().get(ConfigKeys.WEB_EDITOR_URL_PATTERN) + "?" + pasteId;
String url = plugin.getConfiguration().get(ConfigKeys.WEB_EDITOR_URL_PATTERN) + "#" + pasteId;
Message.EDITOR_URL.send(sender);

View File

@ -92,7 +92,7 @@ public class TreeCommand extends SingleCommand {
Message.TREE_UPLOAD_START.send(sender);
PermissionCache permissionData = user == null ? null : user.getCachedData().getPermissionData(plugin.getContextForUser(user).orElse(plugin.getContextManager().getStaticContexts()));
String id = view.uploadPasteData(sender, user, permissionData);
String url = plugin.getConfiguration().get(ConfigKeys.TREE_VIEWER_URL_PATTERN) + "?" + id;
String url = plugin.getConfiguration().get(ConfigKeys.TREE_VIEWER_URL_PATTERN) + "#" + id;
Message.TREE_URL.send(sender);

View File

@ -114,7 +114,7 @@ public class VerboseCommand extends SingleCommand {
} else {
Message.VERBOSE_UPLOAD_START.send(sender);
String id = listener.uploadPasteData();
String url = plugin.getConfiguration().get(ConfigKeys.VERBOSE_VIEWER_URL_PATTERN) + "?" + id;
String url = plugin.getConfiguration().get(ConfigKeys.VERBOSE_VIEWER_URL_PATTERN) + "#" + id;
Message.VERBOSE_RESULTS_URL.send(sender);