Link interception issues with subfolder setup?


(Rohmann) #1

Hopefully this helps anyone running into a similar problem. Our subfolder/reverse proxy site involved some custom markup (header/footer/etc) where we have links to other sites on the same domain (behind the same reverse proxy). We ran into some link interception issues where if a user clicked https://example.com/another-site they were taken to example.com/forum/another-site/.

This modification solved it for us:

var DiscourseURL = require('discourse/lib/url').default;

DiscourseURL.reopen({
  routeTo: function(path, opts) {

    if ( ! this.isInternal(path) ) {
      window.location = path;
      return;
    }

    return this._super(path, opts);

  }
});

Subfolder support with Docker
(Sam Saffron) #2

@neil is this an open bug on tudiabetes?


(Neil Lalonde) #3

@sam TuDiabetes decided not to use a subfolder setup anymore and have moved to a subdomain.


(Sam Saffron) #6

I am not seeing this issue on Forums de discussion jeux vidéo Gamekult - Gamekult which is a forum we host. The custom header links just fine to other parts of the domain.

Can you still repro this @rohmann?


(Sam Saffron) #8

This topic was automatically closed after 6 days. New replies are no longer allowed.