i need java code to get a part from URL when reload a page and put it in hyperlink and show it in same page.
Example
get google drive file id from page url while reload:
http//example.com#https//drive.google.com/open?id=fileid
.
and add it to this hyperlink with new parameter:
http//docs.google.com/uc?id=fileid&export=download