Jump to content
You must now use your email address to sign in [click for more info] ×

Splitting long URLs in Publisher

Recommended Posts

I have a couple of long URLs that create very loose line spacing.  If I manually add a space (either in the Insert URL dialog or later directly on the page) so that the line breaks are better, the URLs no longer work.  How to handle this?

Note that MS Word has a good arrangement here: you enter the actual URL and then at the bottom of the dialog you enter the text to display in the document, which can be the URL plus spaces to help with line breaks.  That's what I'm used to but I can't find anything similar in Publisher.

Link to comment
Share on other sites

You can do this in Affinity:

  1. Paste in the URL as text.
  2. Select the URL and choose Insert Hyperlink - paste the actual URL into the field and click OK.
  3. Edit the URL in the text frame to whatever you want. It will not change the hyperlink when exported.

Note that long URLs split over multiple lines may not be interpreted correctly by your PDF viewer because some of them like Apple Preview try to find URLs in text.

Link to comment
Share on other sites

3 hours ago, DJP said:

Thank you, Mike.  If I choose Text/Interactive/Go to hyperlink target within Affinity, it works.  But I cannot get the split URL to work in any PDF viewer I have tried (three).  Any ideas?

Could you share a test document with this issue? Just create a single link in a blank document and upload the afpub.

I created a test doc (see below) with a link to this thread and it worked in Apple Preview and Google Chrome. The link crashed in Acrobat Reader which I believe is a known issue with Acrobat at the moment - I don't remember the details of that but I think that was already discussed.


Link to comment
Share on other sites

 See the attached. The afpub file shows how it looks if I copy the URL from the web page and paste it in as plain text. This works both inside Affinity and in an exported PDF. If I add a space before '1999' by editing the text directly in the text frame (as shown in the PDF), I get an error message when I attempt to visit the wURL sample 2.pdf eb page.

URL sample.afpub

Link to comment
Share on other sites

If I add a space before 1999 in your file and then export it, the resulting PDF works fine for me. Can you share the afpub file with the space before 1999 so I can compare it?

Also, I edited the hyperlink style so I could see what it was applied to and noticed that you'd typed a couple more characters in the hyperlink style (semicolon and space)


Link to comment
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.

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.

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.