Skip to content

Bookmarklet to switch between the external Ideas Portal view and the internal Aha workspace view

License

Notifications You must be signed in to change notification settings

sonatype/ideas-portal-view-switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ideas-portal-view-switcher

Bookmarklet to switch between the external Ideas Portal view and the internal Aha workspace view.

Getting Started

Dependencies

  • Any modern browser (i.e. Firefox, Chrome, Edge, Safari)
  • Sonatype employee with access to the Sonatype Aha instance

Installation

Method 1: Click and drag

  1. Drag one of the following links onto your bookmarks bar
    • Open new tab: Switch View
    • Open in same tab: Switch View
  2. If the above link does not show, go here first

Method 2: Manually create new bookmark

  1. Create a new bookmark using one of the following code blocks:

Open new tab:

javascript: (() => {
    if (window.location.hostname == 'ideas.sonatype.com') {
        window.open(window.location.href.replace('ideas.sonatype.com', 'sonatype.aha.io/ideas'))
    } else if (window.location.hostname == 'sonatype.aha.io') {
        window.open(window.location.href.replace('sonatype.aha.io/ideas', 'ideas.sonatype.com'))
    } else {
        alert('This bookmarklet only works when you are viewing an idea in ideas.sonatype.com or sonatype.aha.io.')
    }
})();

Open in same tab:

javascript: (() => {
    if (window.location.hostname == 'ideas.sonatype.com') {
        window.open(window.location.href.replace('ideas.sonatype.com', 'sonatype.aha.io/ideas'), '_self')
    } else if (window.location.hostname == 'sonatype.aha.io') {
        window.open(window.location.href.replace('sonatype.aha.io/ideas', 'ideas.sonatype.com'), '_self')
    } else {
        alert('This bookmarklet only works when you are viewing an idea in ideas.sonatype.com or sonatype.aha.io.')
    }
})();

Usage

  1. Go to a URL with a Sonatype Idea
  2. Click on the bookmarklet

License

Distributed under the Apache-2.0 License. See the 'LICENSE' for more information.

About

Bookmarklet to switch between the external Ideas Portal view and the internal Aha workspace view

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published