Tag Breadcrumb doesn't respect subfolder path

AI-generated summary

The issue is with the Tag Breadcrumb not respecting the subfolder path. cpradio reported that when clicking on a tag name in the breadcrumb, the URL redirects to the root path (example.com/tags/tagname) instead of staying on the same page with the subfolder path.

cpradio provided more clarification and screenshots, showing that the issue occurs when clicking on the tag name from the Tags page. The problem is related to the tag link providing a relative URL.

After cpradio provided more context, neil was able to identify the issue and pushed a fix.

Repro Steps:

  1. Subfolder Install
  2. Visit Tags page
  3. Click on any Tag
  4. Click on the tag name again in the Breadcrumb/Title

Expected:
You stay on the same page

Actual:
You are redirected to the example.com/tags/tagname (note the lack of subfolder)

7 „Gefällt mir“

I can’t reproduce this in a dev env or a production site like Sitepoint. You mean clicking one of the tag names here?

3 „Gefällt mir“

Ah, sorry, let me make this more clear, wrong Tag page.

Click on Tags from the Hamburger Menu, then click on a Tag

URL should be similar to Topics tagged docker

Click on the tag name

It seems to be related to it providing a relative URL

Same page/URL at SP

5 „Gefällt mir“

Aha, I didn’t even know that was a link! I pushed a fix.

7 „Gefällt mir“