##Description
- Append two custom parameters to specific URL's entered by an Author.
- Open all links pointing outside your site inside a new window
- Add .html to links entered through the GUI pathfield widget (@adobe why is this not OOTB?)
##Use case When an Author selects a link via pathfield I found AEM is not adding the extension. I was going to add some Client Side JavaScript to my dialog windows to handle this on save however I also had the following business requests so I leveraged Server Side JavaScript to take care of all of this.
##Requirements
- When a request is to domain1name.com or domain2name.com append 2 author controllable URL parameters used for Tracking which the authors could control Globally per site.
- All external links in a new/tab widow.
##Instructions
- Add 2 custom textfield's to the page properties
- property1name
- property2name
- Place linkhandler.js anywhere you wish
- Update linkhandler.html to point to linkhandler.js