Replace your target link with what you want
The main idea is from Sitecore CMS.
When I was working on Content Editor in creating new page items or updating published pages, I sometimes need to compare the item to current live page to see how current live page looks like. In this case, I would open a new tab or window and manually type “http(s)://www.mysite2.com/Finance/Market_News” in Address Bar because its database-driven item path is “/sitecore/content/Site2/Finance/Market_News” in Sitecore.
I was looking for a better way to reduce a few seconds and thinking that “Okay, let’s create a command which is getting item’s path by Item ID and replace prefix (“/sitecore/content/Site2/”) with site domain (http://www.mysite2.com/). This command would be used in a new ribbon in Content editor and xEditor (Page Editor).” In addition to this, there is a way to change the target DB to “Web” DB instead of “Master” when user clicks “Preview”.
However, until Sitecore Administrator or/and .Net developers add this feature, Sitecore end-users who have access to Content Editor would not have any chance to open live page directly from Content Editor. This, my own concern, made me think of creating a Chrome Extension so that any user can use shortcut without asking new feature to their agents or vendors. Even the main idea was from Sitecore, this extension can be used in any web page.
======= Version 1.1 =======
- Enable Incognito mode
- Minimize the size of package
Latest reviews
- (2023-07-24) Lorenzo P: I tried it for the "Images" link in Google, in incognito with incognito access enabled for the extension, but it didn't work. Manually changing the link works fine so the extension is the problem. It was supposed to turn off safe search (permanently through your extension), by changing https://www.google.nl/imghp?hl=nl&ogbl to https://www.google.nl/imghp?hl=nl&ogbl&safe=off
- (2022-06-21) Reto Egeter: Works well but I wish we could disable URL check. I am getting a lot of "Replaced URL, but it looks like a wrong webpage URL." Because I got other chrome plugins that allow shortcode URL's that look illegal such as go/mylink/myparam
- (2021-12-14) Luca Caspari: Extension is great for server rendered files, can you make this open source so I can maybe add a feature to support a delay on the url replacement for .js framework support?
- (2017-10-10) Software Guru (Guru Bee): Really a great help for processing links, would really love a short cut key to be added for the replacement to work on left mouse click. like ctrl+left mouse click opens a new tab.
- (2016-08-10) Greg Moore: This is super helpful to my daily work within Sitecore.