# URL Parameter - can't set up an editor default value

**URL:** <https://community.weweb.io/t/url-parameter-cant-set-up-an-editor-default-value/7173>\
**Category:** How do I?\
**Created:** [February 22, 2024, 10:09am UTC](https://community.weweb.io/t/url-parameter-cant-set-up-an-editor-default-value/7173 "2024-02-22T10:09:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maciej.ziolkowski](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/maciej.ziolkowski/32/7740_2.png) [@maciej.ziolkowski](https://community.weweb.io/u/maciej.ziolkowski)\
**Post date:** [February 22, 2024, 10:09am UTC](https://community.weweb.io/t/url-parameter-cant-set-up-an-editor-default-value/7173/1 "2024-02-22T10:09:10Z")

</div>

Hi,  
when I try to set up a default value for URL parameter I get an error that the provided value does not match an allowed pattern.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/1e44d3d26201d06d156b0efd6d83f35c53049c27.png)

But the binding to URL param works as expected in the preview mode…

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/6/67758ef85f8b4cf8b6c63ade5b5f732e18043a2c.png)

I even tried to paste the mentioned value in the format it appear in the `url` ( **Animals+%26+Pets** ) in the WeWeb editor and place it in quotation marks, but without success.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/2cbfb1f451f00c7538534b706792218ec91e2967.png)

Is it a bug or a limitation of the default URL parameter? Should I then rather use a UUID of the record in Supabase as URL dynamic value?

Regards,  
Maciej

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [February 26, 2024, 2:53pm UTC](https://community.weweb.io/t/url-parameter-cant-set-up-an-editor-default-value/7173/2 "2024-02-26T14:53:55Z")

</div>

Hi @maciej.ziolkowski 👋

URL parameters are to define fixed paths in a slug. You can’t have any spaces or capital letters in a slug (that’s not a WeWeb thing, it would be the same if you coded your web-app).

Here, it looks like you category name will be a query string. You therefore don’t need to add a URL parameter.

I’d recommend watching this video that explains the pros and cons of both approaches to get a better understanding of dynamic collection pages:

> **[Create a dynamic collection page](https://academy.weweb.io/scale-your-web-app/dynamic-pages/)**
>
> In this video, we show you 2 ways you can create a dynamic page to display data from a specific collection item.
