BreadCrumb not working with with Nextjs statically generated pages - Fixed

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
chrishj
Posts: 229
Joined: 11 Jul 2011, 21:58
Location: England, Lancashire
Contact:

14 Dec 2022, 14:55

The breadcrumb feature in Apollo NextJs only seems to work with the file structure:

Directory name
index.tsx

Called with:

Code: Select all

to: /product/basketTest
The nextStatically generated page has the structure
Directory name
[id].tsx

called with:

Code: Select all

to: '/product/brandProduct/1993'
Here is the portion of AppMenu.tsx

Code: Select all

{
			label: 'Dashboards',
			icon: 'pi pi-home',
			items: [
				{
					label: 'E-Commerce',
					icon: 'pi pi-fw pi-home',
					to: '/',
				},
				{
					label: 'brand1',
					icon: 'pi pi-fw pi-image',
					to: '/product/brandProduct/1993',
				},
				{
					label: 'basket L1',
					icon: 'pi pi-fw pi-image',
					to: '/product/basketTest',
				},
				{
					label: 'basket L0',
					icon: 'pi pi-fw pi-image',
					to: '/basketTest',
				},
			],
		},
All of the above shows the appropriate page
Could you let me know a way to include statically generated pages in the breadCrumb?
Last edited by chrishj on 08 Aug 2023, 07:59, edited 1 time in total.
PrimeReact: 9.6.0
NextJs: 13.4.12
Theme Apollo v9.0
Database pg 8.8.0
react-hook-form: 7.38.0

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

27 Jan 2023, 14:22

@ulas @bugra can you assist with this issue, please?

chrishj
Posts: 229
Joined: 11 Jul 2011, 21:58
Location: England, Lancashire
Contact:

08 Aug 2023, 07:59

Hi,

The upgrade to the latest version has fixed the issue.

I have the extended license now.

Great product!!

Many thanks,
PrimeReact: 9.6.0
NextJs: 13.4.12
Theme Apollo v9.0
Database pg 8.8.0
react-hook-form: 7.38.0

habubey
Posts: 89
Joined: 24 Aug 2022, 13:17

30 Aug 2023, 07:34

Hey there,

Thank you, and I have some great news. Apollo, Diamond, Ultima, and Avalon have been added to the app router in version 10.0.0.

Best.
Bugra Beyduz
PrimeReact Core Developer
Github profile: https://github.com/habubey

Post Reply

Return to “Apollo - PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests