# URL is always after :rollback? cut off

**URL:** <https://forum.katalon.com/t/url-is-always-after-rollback-cut-off/182094>\
**Category:** API Testing\
**Tags:** api-testing, katalon-studio\
**Created:** [September 12, 2025, 4:12am UTC](https://forum.katalon.com/t/url-is-always-after-rollback-cut-off/182094 "2025-09-12T04:12:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukas.nowicki](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/lukas.nowicki/32/30227_2.png) [@lukas.nowicki](https://forum.katalon.com/u/lukas.nowicki)\
**Post date:** [September 12, 2025, 4:12am UTC](https://forum.katalon.com/t/url-is-always-after-rollback-cut-off/182094/1 "2025-09-12T04:12:44Z")

</div>

Hello everyone,

I would like to put together a URL with the path Katalon always cuts off everything after :rollback? e.g. stands. Does anyone have a solution?

For example, I have a URL with:

`:rollback?Id=1234`

My result URL is then:

`:rollback`

---

<div class="post-metadata">

**Author:** ![dineshh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dineshh/32/24488_2.png) [@dineshh](https://forum.katalon.com/u/dineshh)\
**Post date:** [September 12, 2025, 6:19am UTC](https://forum.katalon.com/t/url-is-always-after-rollback-cut-off/182094/2 "2025-09-12T06:19:58Z")

</div>

Build the full URL string in a test variable or script and pass it programmatically, bypassing UI-based URL input or Try URL-encoding the question mark ( **`%3F`** ), so the URL becomes **`:rollback%3FId=1234`**

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [September 12, 2025, 2:05pm UTC](https://forum.katalon.com/t/url-is-always-after-rollback-cut-off/182094/3 "2025-09-12T14:05:47Z")

</div>

If @dineshh’s idea does not work, then just try to put a down slash in front of the question mark, like:

`:rollback\?Id=1234`

What this is supposed to do is “escape” the question mark so that it becomes **just** a question mark, and not some other purported character.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [September 12, 2025, 10:28pm UTC](https://forum.katalon.com/t/url-is-always-after-rollback-cut-off/182094/4 "2025-09-12T22:28:51Z")

</div>

> [@lukas.nowicki](#):
>
> I would like to put together a URL with the path

How does your code try to put together a URL with the path?

Please show your code to us here.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [September 12, 2025, 11:47pm UTC](https://forum.katalon.com/t/url-is-always-after-rollback-cut-off/182094/5 "2025-09-12T23:47:07Z")

</div>

> [@lukas.nowicki](#):
>
> My result URL is then:
> 
> `:rollback`

This string does not look to be a valid [URL](https://en.wikipedia.org/wiki/URL). Syntactically wrong.

Could you explain how you can call it a URL.

---

<div class="post-metadata">

**Author:** ![prasantik](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/prasantik/32/30227_2.png) [@prasantik](https://forum.katalon.com/u/prasantik)\
**Post date:** [September 13, 2025, 4:39am UTC](https://forum.katalon.com/t/url-is-always-after-rollback-cut-off/182094/6 "2025-09-13T04:39:03Z")

</div>

#### Use navigateToUrl After Authentication

If you’re authenticating first, the query string might get stripped. Instead:

Authenticate first (if needed)

Then use `WebUI.navigateToUrl('https://yourdomain.com:rollback?Id=1234')` as a separate step

This avoids the truncation during the authentication phase.

#### **Encode the URL**

Try URL-encoding the query string:

String encodedUrl = ‘[https://yourdomain.com](https://yourdomain.com):rollback%3FId%3D1234’ WebUI.navigateToUrl(encodedUrl)

This can sometimes trick Katalon into preserving the full path.

I hope this will help and please let me know if this not works. 👍

---

<div class="post-metadata">

**Author:** ![dineshh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dineshh/32/24488_2.png) [@dineshh](https://forum.katalon.com/u/dineshh)\
**Post date:** [September 14, 2025, 6:45am UTC](https://forum.katalon.com/t/url-is-always-after-rollback-cut-off/182094/7 "2025-09-14T06:45:52Z")

</div>

@lukas.nowicki Any of the solution resolved your issue?

---

<div class="post-metadata">

**Author:** ![prasantik](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/prasantik/32/30227_2.png) [@prasantik](https://forum.katalon.com/u/prasantik)\
**Post date:** [September 14, 2025, 11:46am UTC](https://forum.katalon.com/t/url-is-always-after-rollback-cut-off/182094/8 "2025-09-14T11:46:55Z")

</div>

@lukas.nowicki If none of those options worked, can you please share your script?
