Issue With Dynamic Content Linking - Question | JoomShaper

Issue With Dynamic Content Linking

D

digitalmaster

SP Page Builder 1 week ago

I am having an issue with dyanmic text linking incorrectly. For example, if I am on page whatever.com/page2 and am linking to the dynamic content found on whatever.com/dynamic-content, it will link to whatever.com/page2/dynamic-content instead, creating an error.

0
11 Answers
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 1 week ago #222327

Hello,

Thanks for reaching out to us. Could you please share temporary administrator access to your Joomla backend? You can provide the credentials securely in the hidden content section. Also, please take a full backup of your site before we make any changes.

Once I have access, I’ll investigate further and see what’s causing the issue. Let me know once you’ve shared the details!

Best regards,

0
D
digitalmaster
Accepted Answer
1 week ago #222379

I included the link. It's happening on other landing pages, for example, one page is /lakes-region-pizza

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 1 week ago #222419

I see this, this is the normal behavior of a system.

But you can acieve this by using htaccess, you can add the following rule in your .htaccess file:

RewriteEngine On

RewriteCond %{REQUEST_URI} ^/lakes-region-pizza/(.+)$
RewriteRule ^lakes-region-pizza/(.+)$ /$1 [R=301,L]

Thanks

0
D
digitalmaster
Accepted Answer
6 days ago #222535

So what is the purpose of dynamic content if it's not acutally dynamic? If I use dynamic content throughout the website, it should be consistent, and if an item is clicked on multiple pages and that item creates a new page for each page it is on, that's going to be lots of duplicate content. I thought the whole reason for using dynamic content was so you could create it once and use it throughout and it would link to the original content?

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 5 days ago #222561

Hi,

Just to clarify the behaviour here — what you are seeing is actually the normal Joomla routing system working correctly, not a bug in Dynamic Content.

Each Dynamic Content item generates its own detail page URL based on the current menu context, which is why the link changes depending on where it is accessed from (e.g. /page2/dynamic-content). This is expected in Joomla’s SEF routing system.

If you need a fixed and consistent URL structure, there are a few proper ways to handle it:

  • Create a dedicated menu item for the detail page (recommended) → This ensures Joomla always generates a consistent SEF URL.
  • Or manage it via rewrite rules in .htaccess if you want custom URL behavior.

Dynamic Content is designed to follow Joomla’s native routing and menu system, so URL variation is part of how it works, not an error.

Thanks for your understanding.

Best regards,

0
D
digitalmaster
Accepted Answer
5 days ago #222604

I understand that, but we are talking about the crunch food menu items. So if someone clicks on burger on one page, it shows a different url than another. Usually I'd have a module that would go to specific links or I would save a section and use the same section from one page on another page and would not have this issue. Even if I create a link to the item details, it would still show the lnk

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 4 days ago #222657

Hi,

I understand your concern now — the confusion is coming from how Joomla handles URLs, not from Dynamic Content itself.

Dynamic Content is working correctly in terms of reusability (you create the item once and use it anywhere). However, the link/URL is not fixed — Joomla generates it based on the page where the item is being rendered.

So:

  • If you place the same item on different pages
  • Joomla will generate different URLs like /page2/burger

This does not create multiple items or duplicate content in the database — it’s still one item, just multiple access paths.

Why your manual link still changes

Even if you try to link directly to the item, Joomla will still adjust the URL based on the current page context. That’s why it doesn’t behave like a fixed module link.

Proper solution (what you should do)

Since Dynamic Content does not support dedicated menu items for each detail page, the correct way to handle this is:

Use a single base path and enforce it

Option 1 (Recommended): .htaccess redirect Force all context-based URLs to redirect to one clean URL.

Example: RewriteEngine On RewriteCond %{REQUEST_URI} ^/page2/(.+)$ RewriteRule ^page2/(.+)$ /$1 [R=301,L]

This ensures:

  • /page2/burger → redirects to /burger
  • Only one consistent URL is used

Option 2: Keep items under one index page

  • Always access items from the same Dynamic Content index page
  • Avoid placing direct item links on unrelated pages

Summary

  • Dynamic Content = reusable data
  • URL = controlled by Joomla routing
  • To get consistent URLs → you must enforce a single route (via redirect or structure)

This isn’t a bug — just how Joomla routing works. Once you enforce a single URL pattern, the issue will be resolved.

Best regards,

0
D
digitalmaster
Accepted Answer
3 days ago #222839

The issue I have is this is not how your own demo is working. If I am on any page and click on "view item" on the page when looking at a food item on crunch, the correct url always displays, only 1 url no matter which page I am clicking from. https://demo2.joomshaper.com/2025/crunch/index.php/menu-categories/burgers/pepperoni-powerhouse

If I edit my htaccess file's rewrite engine with the following, is this exactly what I need to put? Essentially, all food items should appear at url.com/menu/fooditem, so If someone is on url.com/menu/salads, and there it shows some of our burgers, I don't want it to show url.com/menu/salads/burgers/burger1, I want it to go directly to menu/burgers/burger1. I want to make sure what you write below includes that or should I replace page2 with menu, which is what I am assuming I should do.

Your template food items are not having the same issue.

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 2 days ago #222847

Then you can follow Crunch style: Please, check this screenshot:

  1. https://prnt.sc/9CYvsuEKp03v
  2. https://prnt.sc/caFqU-qJ3PhQ

Now, In main menu we create a menu name menu and assign burger category menu to it Check this: https://prnt.sc/UFey6JQVse2N

From your previous response, you mentioned this: I don't want it to show url.com/menu/salads/burgers/burger1

This is not expected beahavior and I agree this is wrong way. It will depends on you, if you wrong menus then maybe this scenerio will create. If have this type of menu, please share i will check the setup.

Thanks

0
D
digitalmaster
Accepted Answer
2 days ago #222875

I really appreciate you helping. I have it set up the same way and did not deviate much from the template. I am still having the issue of it showing different links on different pages. I did provide access in hidden content on one of the messages above.

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 1 day ago #222931

Hi,

I think there may have been a misunderstanding. Your assigned menu name is lakes-region-pizza, but you’ve added collections for general Food. That’s why you’re seeing this behavior—it’s actually expected and normal.

For this menu, you should use Pizza-related collections instead of general Food collections. If your menu name and alias were something broader (like “menu” or anything representing multiple food categories), then using Food collections would make sense and the menu alias would generate correctly.

Please take another look at my previous response regarding how this works in the Crunch template.

Thanks.

0