Replace your target link with what you want

Latest Version

Version
1.1
Update
July 9, 2017
Size
4.45MiB
Developer
Category
Users
827
Rating
3.91667 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
ContextMenus
Tabs
Storage
ActiveTab
See more

URL Replacement Extension

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
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx","manifest_version": 2,"name": "URL Replacement","version": "1.1","options_page": "configuration.html", "description": "Replace your target link with what you want", "short_name": "URL Replacement","incognito": "split","content_scripts": [{"matches": [""],"js": ["js/jquery-3.1.0.min.js"]}],"icons" : { "16" : "img/icon_arrow3.png", "128" : "img/icon_arrow3.png"},"browser_action": {"default_icon": "img/icon_arrow3.png","16": "img/icon_arrow3.png", "default_title": "URL Replacement", "default_popup": "popup.html"},"permissions": ["contextMenus","tabs","storage", "activeTab"],"background": {"scripts": ["js/content.js"]} }
Read more

Similar Extensions

User reviews

icon

Lorenzo P (ID: 000000c16ce098ff) Voted 1 ★ - Updated 07/24/2023 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

icon

Reto Egeter (ID: 000000f0baeaef49) Voted 4 ★ - Updated 06/21/2022 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

icon

Luca Caspari (ID: 000000222f29440b) Voted 5 ★ - Updated 12/14/2021 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?

icon

Software Guru (Guru Bee) (ID: 000000434f1deb6b) Voted 5 ★ - Updated 10/10/2017 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.

icon

Greg Moore (ID: 0000003dc9295f81) Voted 5 ★ - Updated 08/10/2016 This is super helpful to my daily work within Sitecore.