URL/Hyperlink errors %25

Hello Everyone,

This is driving me nuts. I have a url from paypal to be specific. The link works fine when I paste it into safari, but when I add it to pages as a hyperlink/url, pages adds the number 25 to the url.
For example, the url should look like this:
https://www.paypal.com/cgi-bin/webscr?cmd=xclick&business=darron%40djones%2ecom&item_name=album&amount=999%2e99&no_shippin g=0&no_note=1&currencycode=USD&lc=US&bn=PP%2dBuyNowBF&charset=UTF%2d8

But whenever I click the link, it opens safari, and display this as the url:
https://www.paypal.com/cgi-bin/webscr?cmd=xclick&business=darron%2540djones%252ecom&item_name=album&amount=999%252e99&no_s hipping=0&no_note=1&currencycode=USD&lc=US&bn=PP%252dBuyNowBF&charset=UTF%252d8

Notice, after all the % signs, the number 25 just shows up throwing everything off.

Please help.

Thank
Dj

powerbook g4, Mac OS X (10.4.11)

Posted on Aug 5, 2008 12:41 AM

Reply
12 replies

Aug 15, 2008 7:38 AM in response to theDarjon

Done:

tracking number for this issue is Bug ID# 6152296.


When we ask a service like Paypal for allowing us to work with them, we receive a link of this shape:

https://www.paypal.com/cgi-bin/webscr?cmd=xclick&business=darron%40djones%2ecom&item_name=album&amount=999%2e99&no_shippin g=0&no_note=1&currencycode=USD&lc=US&bn=PP%2dBuyNowBF&charset=UTF%2d8

As you may see, it's an "expanded" version of

https://www.paypal.com/cgi-bin/webscr?cmd=xclick&business=darron@djones.com&item_name=album&amount=999.99&no_shipping=0&no _note=1&currencycode=USD&lc=US&bn=PP-BuyNowBF&charset=UTF-8

+don't worry, it's the forum's parser which plays the fool with the 'standard' link. I have no free time to search the offending tag+

The problem is that if we store the link as it is sent by Paypal in Pages, when sending it, the program replaces the embedded characters "%" by "%25" which is its way to store the percent char.

The result is this link:

https://www.paypal.com/cgi-bin/webscr?cmd=xclick&business=darron%2540djones%252ecom&item_name=album&amount=999%252e99&no_s hipping=0&no_note=1&currencycode=USD&lc=US&bn=PP%252dBuyNowBF&charset=UTF%252d8

which of course fails.

Is it a way to get rid of that?

Yvan KOENIG (from FRANCE vendredi 15 août 2008 16:35:57)

Nov 13, 2008 12:12 PM in response to updeinva

Oops. I posted it quickly as a response to a question and forgot to type some explanations.

It's now done and I added a piece of code: now it pastes the cleaned URL in a Pages document at the selected insertion point.

<http://idisk.me.com/koenigyvan-Public?view=web>

Download
for iWork:for_Pages:normalizeURL.zip

Yvan KOENIG (from FRANCE jeudi 13 novembre 2008 21:12:51)

Nov 14, 2008 6:05 AM in response to updeinva

The late version (described yesterdays) states:

+--(SCRIPT normalize_URL]+
(*
+Save the script as an Application Bundle: normalize_URL.app+

+Move the newly created application into the folder:+
+<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:+
+Maybe you would have to create the folder Pages and even the folder Applications by yourself.+

+Copy the odd URL to the clipboard+
+Click in a Pages document where you want to paste the cleaned URL+

+Go to+
+menu Scripts > normalize_URL+

+It will put in the clipboard a 'clean' URL then paste it where is the cursor.+

This forum is not dedicated to teaching the use of AppleScripts.

Click on the Desktop
Select "Help > Help Mac"
Search for "AppleScript"

Read the entries entitled:

About AppleScript
About the Script menu
Writing AppleScripts and viewing dictionaries in Script Editor

Yvan KOENIG

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

URL/Hyperlink errors %25

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.