Skip to main content

#Experience5 personnes en discutent

Hi everyone,

I’m working on an LWR Digital Experience site and would like to pass a value as a path parameter

rather than as a query parameter. 

 

Instead of using the URL format:

https://test.com/test?QP=testRecord

I would like to use the following URL format:

https://test.com/test/testRecord

In this case, testRecord would be a dynamic path parameter.

 

I’ve tried configuring a custom route in Experience Builder, but I’m getting the message:

“Include only alphanumeric characters and hyphens.”

 

Any guidance or examples would be greatly appreciated.

Thank you! 

 

#Experience  #Digital Experience  #LWR

4 réponses
  1. 7 sept., 20:17

    Hi @Shanika Nishani

     

    Experience Builder doesn't support dynamic path segments for custom pages. The "alphanumeric and hyphens only" validation you're hitting is by design the path field only accepts a literal, static string, not a placeholder token like {param} or :param

     

    Why this happens 

    The routes.json dynamic-route syntax you may have seen in Salesforce docs applies to pro-code LWR apps built with the standalone LWR framework/CLI (outside Experience Cloud entirely) not to LWR sites built in Experience Builder. In Experience Builder, you don't get direct access to routes.json; the platform generates routing config from what you set in the Pages panel, and that UI only accepts static, hyphenated paths. 

    The one built-in exception 

    Object/Record Detail pages do support a dynamic segment automatically e.g. /s/product/{recordId} or /s/product/{urlName} but only because that's a special out-of-the-box "Object Page" type tied to a Supported Object via the UI API. You don't configure that path pattern yourself; it comes for free with that page type. It won't generalize to an arbitrary custom page. 

    Practical workarounds 

    1. Query parameters (supported, no workaround needed) /test?QP=testRecord, read via CurrentPageReference in your LWC. This is the intended mechanism for passing dynamic values to a custom LWR page.
    2. Edge/CDN URL rewrite if your custom domain sits behind a CDN or reverse proxy you control (Cloudflare, Akamai, CloudFront, etc.), add a rewrite rule that maps /test/testRecord/test?QP=testRecord before the request hits Salesforce. The browser URL stays pretty; Salesforce still only ever sees the query-param version. This is the most common way teams get "clean URLs" on Experience Cloud today.
    3. Object Page pattern, generalized if what you actually want is "detail page keyed by a record's URL-friendly name," consider modeling it as a real Object Page against a Supported Object rather than a generic custom page then you inherit the dynamic-path behavior natively instead of fighting the custom-page path field.
    4. True pro-code LWR if dynamic path routing is a hard requirement, that's a signal this isn't a fit for an Experience Builder-managed site at all; a decoupled/headless approach (LWR OSS app, or a separate front-end calling Salesforce APIs) gives you full routes.json control, at the cost of losing Experience Builder's drag-and-drop admin experience.

    Given the trade-offs, most teams end up on option 2 (CDN rewrite) since it needs zero Salesforce-side changes and keeps admins working in Experience Builder normally. If you want to go that route, worth confirming first whether you're using Salesforce's own domain/CDN or a custom DNS setup in front of it that determines whether you even have a layer available to add the rewrite rule. 

     

    I hope you find the above information helpful. If it does, please mark it as Best Answer to help others too.

0/9000

LWR Quick Tip: Change Colors in a Section or Column

Hi folks - welcome to a new series of short posts introducing tips, tricks, and new features in Experience Cloud LWR 🚀(video playlist here)

Want to have a different background color for a specific Section or Column? Or want a different font color or button color for a part of the Site? 

Check out the 90 second demo hereLWR Quick Tip: Change Colors in a Section or ColumnHi folks - welcome to a new series of short posts introducing tips, tricks, and new features in Experience Cloud LWR 🚀(video playlist here)Want to h

Steps to take:

  1. Click on the Section or Columns component where you want to change colors
  2. In the ‘Color Palette’ setting, click on ‘New’ to create a new color palette that you want to apply to that Section. The Theme > Color Palette panel will appear on the left side of builder
  3. In the Theme > Color Palette panel, you can configure the background color of the Section, as well as other colors like Text colors and Button colors

@* Experience Cloud * @Lightning Web Runtime Experiences @* Salesforce Commerce for B2B & D2C * #Experience Cloud

0/9000

LWR Quick Tip: Create a multi-column layout on mobile

Hi folks - welcome to a new series of short posts introducing tips, tricks, and new features in Experience Cloud LWR 🚀 (video playlist here)

 

Want to create a 2 column layout or even 3 or 4 column layout in Mobile view? That’s now easily achievable with the Spring ‘24 release!

 

Check out the <1min demo here!LWR Quick Tip: Create a multi-column layout on mobileHi folks - welcome to a new series of short posts introducing tips, tricks, and new features in Experience Cloud LWR 🚀 (video playlist here) Want

LWR Quick Tip: Create a multi-column layout on Mobile

 

Here’s a quick guide on how you can have a two column layout on both Desktop and Mobile:

  1. In Experience Builder, select a Section and choose a two column Column Layout
  2. Toggle to Mobile view and select the Section again
  3. In the ‘Column Arrangement: Mobile’ setting, choose the ‘side by side’ option
  4. To vertically align components within the section, use the ‘Component Alignment’ setting

For a much more detailed and advanced guide on all the possibilities of multi-column layouts, check out Jason Klip's article at Salesforce Ben: https://www.salesforceben.com/how-to-use-salesforce-experience-builders-columns-component-like-a-pro/

 

@* Experience Cloud * @Lightning Web Runtime Experiences @* Salesforce Commerce for B2B & D2C * #Experience Cloud

1 commentaire
  1. 27 août 2024, 13:40

    Thanks for these quick tips @Alicia Teo! To everyone reading this - this feature is a complete game-changer in terms of creating mobile-friendly / responsive websites. I highly recommend everyone experiment with it to see what you can do. 

0/9000

LWR Quick Tip: Add an Image to Your LWR Site

 

Hi folks - welcome to a new series of short posts introducing tips, tricks, and new features in Experience Cloud LWR 🚀.

 

Want to add an image to your LWR site? LWR sites are tightly linked with Salesforce CMS, and you will need to have a CMS workspace created in order to add images to an LWR site. Here are the steps to take:

 

Watch a 2min video demo here!LWR Quick Tip: Add an Image to Your LWR Site Hi folks - welcome to a new series of short posts introducing tips, tricks, and new features in Experience Cloud LWR 🚀.

 

Steps:

  1. Create an LWR site (help doc)
  2. Create a CMS workspace (skip this step if you already have a CMS workspace created) (help doc)
  3. Add your LWR site as a Channel to the CMS workspace (help doc)
  4. Create and publish your image content in the CMS workspace (help doc). Note: You can also upload images directly from Experience Builder now that you have a CMS workspace created and linked to your LWR site channel.
  5. In Experience Builder, you can now use that image in your site. Drag and drop an image component onto the canvas, and click on the ‘Select Image from CMS’ button to select images from your CMS workspace. 

@* Experience Cloud * @Lightning Web Runtime Experiences @* Salesforce Commerce for B2B & D2C * #Experience#Experience Cloud

1 commentaire
0/9000
Gerard Casale a publié du contenu dans #Trailhead Challenges

Enable partner user

I am on the "Designate a Partner Account User" module, it says to select "enable partner from drop-down menu, but the option isn't there. How do I enable sForce as partner? #Experience Cloud#Trailhead Challenges

And before you ask, yes, I completed the previous challenge. I checked it 3 times already. 

 

#Trailhead Challenges

1 commentaire
  1. 31 juil. 2024, 16:23

    Hi @Gerard Casale,

     

    I'm a member of the Trailblazer Help team. This issue needs further review and we may need access to your playground. We will reach out to you via email to connect further. Thank you!

     

    Best Regards,

    Ravindra

     

    ++CreateTrailheadCase

0/9000

Hello fellow Salesforce admins and students. I have very recently started embarking on my journey of learning and studying for my Salesforce admin certification. I was just wondering however, if anyone knows any ways of gaining work experience in order to get myself working (preferably remote working as choices are very limited in my area). Im very ambitious and I’m willing to perhaps do free shadowing and training under someone after I get my certification or if a company will accept me, to do minimum wage work (only because I would have to quit college) whilst giving them a more financially friendly alternative!

Thank you very much for your time, and I hope you can get back to me with some words of advice!

#Experience
1 réponse
  1. 26 déc. 2023, 23:20

    The best thing you can do right now is to continue learning on Trailhead until you can pass the Salesforce Certified Administrator exam. After you get the Admin certification, I suggest looking for intern, volunteer, and Junior Salesforce Admin jobs on LinkedIn. Also, another option is to make sure you are using the new Trailblazer Career Marketplace.

    Free LinkedIn Guide

    https://www.talentstacker.com/linkedin-domination-guide/

    Trailblazer Career Marketplace

    https://www.salesforce.com/news/stories/trailblazer-marketplace-news/

0/9000
Alexander Coventry a posé une question dans #Sales Cloud

Hey folks,

 

Emails are not visible within my experience cloud client portal on the case detail page within the feed.

 

This is listed as supported, so I'm hoping that there is something I'm missing.

 

Any help is greatly appreciated!

 

#Sales Cloud  #Service Cloud #Experience Cloud

1 réponse
0/9000

What's the best way to swap out the default Community Self registration page with a custom one where I make them enter their email address twice and make sure it's correct? Do I need to create a new LWC?

 

#Experience #Experience Cloud #Salesforce Developer

1 réponse
0/9000

ATTENTION: Mobile Publisher Android 11.6 & iOS 11.6 Builds are rolling out

11.6 for Android coming to you starting 8/16

  • Fixed app crash happening during login/logout activity when the refresh token was configured to be short lived.

11.6 for iOS coming to you starting 8/23

  • Fixed an issue where persistent login was intermittently failing and causing performance issues.
  • Updated the minimum iOS target to 15.0.
  • Cleaned up code around URL management that was deprecated in the prior release.
  • Enabled web view debugging for Xcode 14.3 and later.

Excited to see the changes coming in these releases? Be sure to download the Mobile Publisher Playground Application to test and see these changes early!

 

#Mobile #Experience Cloud@* Salesforce Mobile * #Mobile Publisher

1 commentaire
0/9000

Bonus Session!!!

Series Name: Experience Cloud For Your Industry 

Industry: Hospitality

When: 13th Dec 2022, 12 pm ET 

Where: Zoom Registration Link  

Bonus Session!!! Series Name: Experience Cloud For Your Industry Industry: HospitalityWhen: 13th Dec 2022, 12 pm ET Where: Zoom Registration Link We are excited to share a bonus session we have put toWe are excited to share a bonus session we have put together in our Experience Cloud For Your Industry series. This session is focused on the Hospitality industry.  

Are you new to Salesforce Experience Cloud? Are you looking to learn how other customers in your industry use Experience cloud? ( Experience Cloud is an online social platform that enables companies to connect customers, partners, and employees with each other — and the data and records they need to get work done.) This message is for you! 

 

If you are hearing of the Experience Cloud For Your Industry series for the first time: In this series, we introduce you to Salesforce Experience Cloud, how the different industries are utilizing Experience Cloud, including industry-specific use cases, customer stories,

 

#Experience #Experience#Experience Cloud and of course, Live Q&A

Come prepared to learn, and we look forward to seeing you! 

 

Thanks! 

0/9000