Skip to content

Commit

Permalink
Merge pull request #1028 from ura14h/ura14h-rc-subdir
Browse files Browse the repository at this point in the history
[FIX] The behavior of clicking links when running RocketChat with subdir.
  • Loading branch information
tassoevan authored Dec 4, 2018
2 parents a80d6ef + f82cccc commit 5a6d848
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 5a6d848

Please sign in to comment.