@djoshinp What you need in this case is a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) which is a bookmark that runs JavaScript. See the below for an example:
javascript\: (() => {
let pagePath = window.location.pathname.substring(1);
pagePath = pagePath.replace(/\/$/, '');
const anchorElement = document.createElement('a');
anchorElement.href = `http://localhost:4502/editor.html/${pagePath}.html`;
anchorElement.target = '_blank';
anchorElement.click();
})();
Be aware that javascript\: is required to inform the browser that it needs to execute JavaScript in the context of this bookmark. Also note that the backslash in javascript\: is only for escaping purposes here. See the link for examples of the correct formatting.
Here is what this does:
- Takes the current page path and removes the initial forward slash
- Removes the trailing forward slash
- Creates a dummy anchor element that opens the editor page in a new tab/window
There are some assumptions here:
- The page path already contains /content
- Your author URL is http://localhost:4502
If you need more configuration an extension would be better but that is beyond this forum.
Hope that helps.