web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Dynamic routes - /{slug}
Power Pages
Suggested Answer

Dynamic routes - /{slug}

(2) ShareShare
ReportReport
Posted on by 2
Can we create the dynamic routes ( /{slug} ) like next.js in power pages
Categories:
I have the same question (0)
  • Suggested answer
    Jerry-IN Profile Picture
    295 on at
     
    It looks like you're asking about implementing dynamic routes with a slug parameter (like /{slug}) in the context of Power Platform, possibly for Power Apps, Power Pages, or related tools. Based on what I've gathered, Power Platform doesn't have built-in routing exactly like Next.js or ASP.NET Core, but you can achieve similar dynamic behavior using parameters and URL handling,especially in Power Apps or Power Pages for custom experiences.
     
    Using Param Function for Dynamic Parameters
    In Power Apps, you can pass and retrieve dynamic parameters (think of them as slugs) when launching an app. This is handy for creating "dynamic routes" where the app behaves based on a URL parameter. For example:
     
    • Use the Param function to grab a value like "slug" from the URL.
    • Syntax: Param("slug") returns the value passed in the app's launch URL, or blank if not provided.
    Here's a quick step-by-step to set it up:
    • In your Power App, on the OnStart property or a screen's OnVisible, check for the parameter: Set(MySlug, Param("slug")).
    • Then, use MySlug to filter data, navigate, or load content dynamically. For instance, if your app is launched with a URL like https://apps.powerapps.com/play/e/{app-id}?slug=my-value, it captures "my-value" as the slug.
    • If you're integrating with SharePoint or other sources, you can pass this param to filter galleries or forms.
    For Power Pages or Web-Like Routing
    If this is for Power Pages (websites built on Power Platform), you can handle dynamic URLs with custom pages and query strings:
    • Define pages with parameters in the URL path, and use Power FX or JavaScript to process them.
    • For more advanced scenarios, like environment routing for makers, admins can set up automatic redirection to developer environments, which indirectly supports dynamic workflows.
    If you're building something more web-dev oriented (e.g., with React or Next.js integrated via Azure), dynamic routes like [slug] can be set up in your file structure for SSG or SSR, then deployed to Azure Static Web Apps for Power Platform integration. For example, create a file like pages/[slug].js and use getStaticPaths to generate paths dynamically.
     
     
    Best Regards,
    Jerald Felix

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 70 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard