Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Mohit_KBansal
Mohit_KBansal
Online

Badges

Badges
28

Accepted Solutions

Accepted Solutions
23

Likes Received

Likes Received
136

Posts

Posts
94

Discussions

Discussions
18

Questions

Questions
76

Ideas

Ideas
1

Blog Posts

Blog Posts
3
Top badges earned by Mohit_KBansal
Customize the badges you want to showcase on your profile
Re: Calculating date and time duration (in hours, and days and hours) - Adobe Experience Manager 15-08-2022
Hello @Daniel_Claire I would prefer to use suggested java.util.concurrent.TimeUnit [1] class. String dateStart = "01/03/22 09:29:58"; String dateStop = "11/07/22 09:33:43"; // Custom date format SimpleDateFormat format = new SimpleDateFormat("yy/MM/dd HH:mm:ss"); Date d1 = null; Date d2 = null; try { d1 = format.parse(dateStart); d2 = format.parse(dateStop); long diff = d2.getTime() - d1.getTime(); long seconds = TimeUnit.MILLISECONDS.toSeconds(diff); long minutes = TimeUnit.MILLISECONDS.toMinut...

Views

62

Likes

2

Replies

0
Re: Overlaying /sling/servlet/errorhandler on AEM as a Cloud Service - Adobe Experience Manager 10-08-2022
Please check filter.xml and make sure this path is included  /apps/sling

Views

58

Likes

2

Replies

1
Re: Dispatcher redirecting requests from https:// to http:// and then again to https:// - Adobe Experience Manager 10-08-2022
Check how the origin domain CDN is used to connect to Apache? Is it with http or https?

Views

56

Likes

2

Replies

0
Re: Dispatcher redirecting requests from https:// to http:// and then again to https:// - Adobe Experience Manager 10-08-2022
@Rohan_Garg Please check if your SSL certificate is breaking before apache, and if the request coming to apache is with HTTP protocol. In this case, you need to implement your 301 rules with HTTPS protocol RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^.]*[^./])$ https://%{SERVER_NAME}/$1.html [R=301,L] * Check if SERVER_NAME name return the correct hostname, otherwise check other variables [1] [1] https://httpd.apache.org/docs/current/expr.html

Views

64

Likes

3

Replies

2
Re: Overlaying /sling/servlet/errorhandler on AEM as a Cloud Service - Adobe Experience Manager 09-08-2022
@ronnie_c The path should be /ui.apps/src/main/content/jcr_root/apps/sling/servlet/errorhandler/404.jsp

Views

85

Like

1

Replies

3
Re: Overlaying /sling/servlet/errorhandler on AEM as a Cloud Service - Adobe Experience Manager 09-08-2022
@ronnie_c You need to commit the changes in your code repository and deploy changes to AEMaaCS via Cloud Manager. Also, have you explored ACS Commons Error page handler capability [1] ? [1] https://adobe-consulting-services.github.io/acs-aem-commons/features/error-handler/index.html

Views

91

Like

1

Replies

5
Re: Load device specific HTML - Adobe Experience Manager 09-08-2022
@s1101v As you know, for every unique URL, there can be only a single response which will be further cached by Dispatcher. So to get a device-specific response from the publisher, you need to generate different URLs, one for each device. Selector based approach is the best solution in this case. Now, you do not need to implement a selector in all components. Just implement in the page component, and if you do not need page level changes, call your page.html from mobile.html under the page compon...

Views

41

Like

1

Replies

0
Re: AEM SPA URL Shorten in Model Exporter - Adobe Experience Manager 09-08-2022
You can try URL shortening in apache using the apache substitute module [1] AddOutputFilterByType Substitute text/json Substitute "s|path:\"\/content\/path\/to\/short\/(.*?)\.html|path:\"/$1.html|i" [1] https://httpd.apache.org/docs/2.4/mod/mod_substitute.html

Views

52

Likes

2

Replies

1
Re: Load device specific HTML - Adobe Experience Manager 08-08-2022
you do not need a mobile domain. For your domain, identify device type using user-agent and Pass Through URI with the correct selector RewriteCond %{HTTP_USER_AGENT} "!(android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|opera mobile|palmos|webos)" [NC]

Views

80

Likes

2

Replies

2
Re: Load device specific HTML - Adobe Experience Manager 08-08-2022
You need to implement selector-based implementation, one selector for each device type. Desktop: /content/path/of/your/page.desktop.html Mobile: /content/path/of/your/page.mobile.html Now the components you want to have a different response for different devices, implement a selector file for them. The next step will be to handle write the apache rewrite rule to identify the request device type via User-Agent RewriteEngine On RewriteCond %{REQUEST_URI} .html$ RewriteCond %{HTTP_USER_AGENT} "!(a...

Views

88

Like

1

Replies

6