Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not call generateUrl with options but without params #676

Open
StCyr opened this issue Oct 15, 2024 · 0 comments
Open

Could not call generateUrl with options but without params #676

StCyr opened this issue Oct 15, 2024 · 0 comments

Comments

@StCyr
Copy link

StCyr commented Oct 15, 2024

Maybe a misunderstanding on my side but I've tried to use:

generateUrl(url, params?, options?)

with the "options" argument, but no params without success.

I'v tried:

let redirect_url =  generateUrl(
	'/apps/signlive/sign_document/gears_callback'',
	{},
	{ baseURL }
    )

and many other ways to call it. Eventualy, only this worked:

let redirect_url =  generateUrl(
	'/apps/signlive/sign_document/gears_callback?job_uuid={signature_request_uuid}&signlive_session_id={signlive_session_id}&original_folder_url={original_folder_url}',
	{
		signature_request_uuid,
		signlive_session_id,
		original_folder_url
	},
	{ baseURL }

Hopefuly, I had url parameters to fill in. But, how would I have done if not?

Is this a bug that I couldn't pass and empty object as the params parameter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant