Relative_url_root issues – incorrect "Latest" link, incorrect redirect

AI-generated summary

Relative_url_root issues in Discourse

The discussion centers around issues with the relative_url_root setting in Discourse, specifically when set to /forum. akvadrako reported two issues in version 2.6.0.beta1:

  1. The “Latest” link on the main page points to /latest instead of /forum/latest, although the link works.
  2. Links to categories without a trailing number, like /forum/c/staff, redirect to /forum/forum/c/staff/3.

akvadrako confirmed these issues persist in the latest version. pfaffman reported a similar issue with admin confirmation links having a duplicated relative_url_root on version 2.5.0.

techAPJ fixed the category link issue and reported being unable to reproduce the “Latest” link issue on the latest Discourse version. pfaffman sought help understanding the confirm_admin_url definition to confirm the bug in version 2.5.0. techAPJ replied, referencing a related topic and GitHub code.

I am using discourse 2.6.0.beta1 with relative_url_root = /forum and I have noticed a couple issues.

One issue is that several links, for example “Latest” on the main page, point to /latest instead of /forum/latest. The links do work, but the status bar shows the incorrect value when hovering.

Another issue is that I was trying to see if I could make links to categories without the trailing number, like /forum/c/staff. This doesn’t work because it redirects to /forum/forum/c/staff/3.

They are not major problems, but I thought I would report them since it doesn’t seem like they are known bugs.

4 Likes

Subfolder issues do creep in. Are you on latest?

1 Like

I have just upgraded to latest and I see the same behavior.

4 Likes

I’m seeing admin confirmation links with the relaztive_url_root duplicated on 2.5.0.

1 Like

Fixed via:

https://github.com/discourse/discourse/commit/32d6286bea8140329d4248f30877240244330636

I’m unable to repro both of the above issues on latest Discourse version.

Thanks, Arpit. These people (whose installation I’m not managing) are on 2.5.0. Can you help me understand where confirm_admin_url gets defined so that I can confirm that it’s a bug in their version of Discourse?

Thanks.

1 Like

I just replied on above topic. :slight_smile:

1 Like