Add / with post_type_link give me 404

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com

I use post_type_link to change the URL for a custom post type “products”. I want the URL to be “www.domain.se/parent-taxonomy/taxonomy/post-name”.

Using this guide: https://wsidmg.com/change-url-structure-of-custom-post-type-and-custom-taxonomy-in-wordpress/ I now have the following code and it creates my URL perfect. Though It give me a 404 when going to a post.

If I remove the / for $termurl it works, so the problem is that I add another /.
Right? Any one know why?

Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
  • Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
  • Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
  • Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.

Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com