How to URL Decode in Power Apps Portals

999 Views Asked by At

Is there similar functionality to Shopify's url_decode in Power Apps Portal using Liquid. I tried using the filter mentioned in the link above but doesn't work with Power Apps Portal.

I'm trying to get "Serivces & Fees" from "?ParentCategory=Services%20&%20Fees&SubCategory=Test".

2

There are 2 best solutions below

0
On

If the string is part of the page url you can use liquid

{% assign ParentCategory = request.params['ParentCategory'] %}

Usage:

<a href={{ rParentCategory }}>Link</a>
1
On

There is a Liquid filter that respond to you need, here the example: https://shopify.github.io/liquid/filters/url_decode/