Back-end Shortcut Workaround

  • 4 October 2016
  • 9 replies
  • 279 views

Userlevel 3
  • Ready to take it to the next level
  • 5 replies
Hey guys, following the last Innovation Lab and the comments about a back-end shortcut I thought this community would be the right place to share the workaround we use at Sonos.

This will work if you are a Google Chrome user but you might have other ways to implement it on other web browsers. The trick is to replace the Chrome Home button by the shortcut.


1. Activate the home button: Go to the Chrome Settings > Appearance and activate Show Home Button
2. Modify the following code by replacing the Sonos url with yours:
code:
var url = window.location.toString();window.location = url.replace(/en.community.sonos.com/, 'sonos-en.insided.com');

3. Click on 'Change', select 'Open this page', paste the code and press OK.


Now you should be good to go. Please keep in mind that it will work only if you are in a front-end topic page. This will not work in you are in the home or a sub-forum page.

I hope this helps you guys in your daily operations, if you have any issues with the code and your urls send it to me as a comment and I will have a look for you.

9 replies

Userlevel 4
Badge
Ha, this is great! Really original :)

Maybe I can add something. Besides changing and sacrificing your home button, you could also make this into a so-called bookmarklet favorite, which you can also pin to a browser toolbar, regardless of the browser of your choice. By copying this in your address bar (I tweaked it a little bit):
code:
javascript:window.location=window.location.toString().replace(/en.community.sonos.com/, 'sonos-en.insided.com');

and either favoriting it or selecting+dragging it onto a toolbar, you will save it and can re-use it as in Pierre's use case.
Userlevel 3
Very nice thanks and yes this works for all web browser now. Thanks Rens!
Userlevel 4
I use this same trick as a simple bookmark in the bookmark bar. It's so useful! I've called the bookmark 'ZAP', which increases the satisfaction I get when clicking it by 12%. 🙂
Userlevel 3
I use this same trick as a simple bookmark in the bookmark bar. It's so useful! I've called the bookmark 'ZAP', which increases the satisfaction I get when clicking it by 12%. :) I'm 67% convinced about this post. :|
Userlevel 4
This is great! Thanks guys!
Userlevel 2
Nice trick Pierre! Thanks for sharing 🙂
Userlevel 7
Badge +4
Our team has used these two bookmarks for a while now.

Back-end to front-end:
window.location = "http://community.(brandname).com” + window.location.pathname;
Front-end to back-end:
window.location = "http://(brandname).insided.com" + window.location.pathname;

It's nice to have both, to be able to switch back to front without opening new tabs.
Userlevel 4
Good stuff. Implemented. Thanks for sharing everyone!
Userlevel 7
Badge +3
I have all the tabs I need pinned so I can always find them quickly!

Spend so much time in and out of control and the front end!!

Darran😀

Reply