Title: Problem with Complex URLS
Last modified: January 24, 2024

---

# Problem with Complex URLS

 *  Resolved [roosites](https://wordpress.org/support/users/roosites/)
 * (@roosites)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/problem-with-complex-urls/)
 * I have a link which ends in a pipe character then a # like this
 * #tabs|3
 * Pretty Links stips out the pipes and we get a 404.
 * Any workaround

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Tyler](https://wordpress.org/support/users/tylerthedude/)
 * (@tylerthedude)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/problem-with-complex-urls/#post-17373474)
 * Hi [@roosites](https://wordpress.org/support/users/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](https://developers.google.com/maps/url-encoding)
 * I hope this helps!
 * Kind regards,
 *  Thread Starter [roosites](https://wordpress.org/support/users/roosites/)
 * (@roosites)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/problem-with-complex-urls/#post-17373517)
 * 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](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](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](https://riqi.org/Forms)
 *  [Tyler](https://wordpress.org/support/users/tylerthedude/)
 * (@tylerthedude)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/problem-with-complex-urls/#post-17373852)
 * Hi [@roosites](https://wordpress.org/support/users/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](https://riqi.org/solutions/health-information-exchange/currentcare/patient-resources/#tab-4)
 * I hope this helps!
 * Kind regards,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem with Complex URLS’ is closed to new replies.

 * ![](https://ps.w.org/pretty-link/assets/icon-256x256.png?rev=2503434)
 * [PrettyLinks - Affiliate Links, Link Branding, Link Tracking, Marketing and Stripe Payments Plugin](https://wordpress.org/plugins/pretty-link/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pretty-link/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pretty-link/)
 * [Active Topics](https://wordpress.org/support/plugin/pretty-link/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pretty-link/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pretty-link/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tyler](https://wordpress.org/support/users/tylerthedude/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/problem-with-complex-urls/#post-17373852)
 * Status: resolved