Board link does not respect path prefix

סיכום מבוסס בינה מלאכותית

KockaAdmiralac reported a bug where board links within threads fail to respect the configured path prefix in a Discourse subfolder installation. Despite following the official installation guide and setting the DISCOURSE_RELATIVE_URL_ROOT variable, the hyperlinks generated below thread titles point to the root directory instead of the subfolder. For example, on a specific test thread, the board link incorrectly resolves to /boards/discussions/2?card=213 rather than the expected /d/boards/discussions/2?card=213. This issue prevents proper navigation for users hosting Discourse in a non-root directory, as the relative URL configuration is ignored during board link generation.

I followed the installation guide for the subfolder setup for my Discourse instance. However, when adding a thread to a board and clicking on the board link below the thread’s title, it does not seem to respect the DISCOURSE_RELATIVE_URL_ROOT variable and creates a link relative to the root. For example, on this thread the board link below the title should be /d/boards/discussions/2?card=213, but it is instead /boards/discussions/2?card=213.