Jump to content
Tonie

Encode URL links In Report grid

Recommended Posts

I am trying to  pass fields with special characters such as a Hash(#) over query string?

I am new to Javascript, but I copied the Javascript from the answer below, and it works fine on the first link of the grid, but all the rest of the links have the parent URL and none of the data. It is building the parameters properly for the first link. 

I inspected the  broken link and I found:

image.png.64ede1158ee18ae523fbc4c81e67a1f9.png

Do I need a loop? or do I need to refer to the links I am trying to encode a different way than    document.querySelector(`#${link_id}`).href = `${base_url}?${params.join("&")}` 

Is there a better way to build the links? I have 17 fields that I am adding to the array to build the links. 

I would appreciate any help

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...