Skip to content

Commit

Permalink
Fixed the behavior of clicking links when running RocketChat with sub…
Browse files Browse the repository at this point in the history
…dir.
  • Loading branch information
ura14h committed Dec 4, 2018
1 parent 31c7a0c commit f82cccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/public/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ window.addEventListener('load', () => {

const { href } = anchorElement;

// Check href matching current domain
if (RegExp(`^${ location.protocol }\/\/${ location.host }`).test(href)) {
// Check href matching Rochet.Chat URL
if (RegExp(`^${ Meteor.absoluteUrl() }`).test(href)) {
return;
}

Expand Down

0 comments on commit f82cccc

Please sign in to comment.