Updating Pagination link URL
For pagination can we avoid using #1 after the page URL.
For eg -
/abc.html#1
instead have structure like this
/abc/page/1 or
/abc/?page=1 or
/abc/page/1.html. with results maybe from 1 -10 in first page
For pagination can we avoid using #1 after the page URL.
For eg -
/abc.html#1
instead have structure like this
/abc/page/1 or
/abc/?page=1 or
/abc/page/1.html. with results maybe from 1 -10 in first page
Hi @manjulakumar,
Yes, you can and should avoid using #1 (fragment identifiers) in URLs for pagination in AEM. Here's a breakdown of your options and best practices:
Fragment (#) is not sent to the server; it’s processed only by the browser.
You can’t handle it on the server side (e.g., AEM servlet, component logic).
It’s bad for SEO: search engines may ignore it or index only the first page.
It can interfere with analytics and routing in SPA/MFE frameworks.
Recommended Alternatives
1. /abc/page/1.html
2. /abc/?page=1
3. /abc/page/1
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.