x

How to Add a Query String in Page URL

Hi All,

Extremely frustrated with weebly support and lack of new features in the last couple of quarters. I am trying to edit the URL for a page which will be hidden in the main Nav Menu. This page will be diaplaying OAuth code which is generated to verify the credentials from another system and the page url must be https://www.abc.com/oauth-page.html?code=CODE_TO_SHOW 

This does not seem to work since weebly does not allow this query string. Is there a work around or something i can do to get this working. 

Thanks

1,512 Views
Message 1 of 2
Report
1 REPLY 1

You could add some custom JavaScript on that specific page that would alter the URL, but I'm not certain if that would solve your specific problem.

<script type="text/javascript">
    window.location.replace( window.location + '?code=' + {{DYNAMIC_OAUTH_VALUE_HERE}} );
</script>

By using window.location.replace you remove the initial URL from history. Of course, I'm not sure this will work, but you could try.

I don't know of another way to modify the page URLs.

1,475 Views
Message 2 of 2
Report