Hi @roosites,
Thank you for reaching out. Could you please try replacing the pipe character (|) with its encoded equivalent (%7C) within your pretty link’s target URL and see if that allows the redirect to work correctly?
I’ll provide a link to Google’s documentation that goes a bit more in-depth on how to handle these types of special characters here: https://developers.google.com/maps/url-encoding
I hope this helps!
Kind regards,
Thanks Tyler, unfortunately, it’s still doesn’t work properly.
So in your browser if you type https://riqi.org/solutions/health-information-exchange/currentcare/patient-resources/#tabs|3 you load the page with the 4th tab open.
But in my pretty link, if I do %7C, so https://riqi.org/solutions/health-information-exchange/currentcare/patient-resources/#tabs%7C3 it resolves to the pipe character but doesn’t load the right tab. Strangely, if you refresh it, it works and loads the right tab.
The pretty link is https://riqi.org/Forms
Hi @roosites,
Thank you for getting back to me. It looks like a JavaScript error is occurring on the page if the pipe character is entered as its encoded equivalent which is why the tab isn’t showing up correctly.
Since you have access to this site, would it be possible to add an ID to each of those tabs and then change the target URL of the pretty link so it links to the ID instead?
Currently, the ID in the pretty link is “tabs” followed by the pipe character to indicate which tab should be opened, but if you added an ID to the fourth tab (say something like “tab-4”), then you should be able to link to it like this: https://riqi.org/solutions/health-information-exchange/currentcare/patient-resources/#tab-4
I hope this helps!
Kind regards,