Jump to content

LOOOOOONG hyperlink!

Go to solution Solved by paul2009,

Recommended Posts

I uploaded a pdf document that should read like this in the URL: 7192019 Final Agenda.pdf

It reads like this: https://static1.squarespace.com/static/5c478a0ff8370ad5312a86af/t/5d2d0455627cd400012baa44/1563231318075/7192019+Final+Agenda.pdf

Some of my other PDFs show with the proper link name, and others show this ridiculous long one. I need to have this work properly because I share links and don't want to use a fake hyperlink.

Can anyone help me please? Squarespace Chat was NO help.

Edited by Guest
Initial Revision
Link to comment
  • Replies 7
  • Views 2.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

Let me try to explain.

When you upload a PDF (or any supported file) to Squarespace your file can be accessed by using the domain name of your site, or the automatically assigned content delivery network (CDN) URL that usually includes "static.squarespace.com".

For example, if you add a PDF called myfile.pdf to a site with the domain example.com then you could post a link to either https://example.com/s/myfile.pdf or to https://static1.squarespace.com/static/xxx/x/xxxx/xxx/myfile.pdf

Both are equally valid. You cannot hide or change the CDN version of the URL. This is fixed.

I hope this helps to explain. If your site isn't working as described then you should reach out to Squarespace Customer Care. I know you said you've done this, but they are the only ones with access to your site and account. The community cannot logon to your site to troubleshoot issues.

Let me know how you get on.

-Paul

Squarespace Expert & Professional Developer

Contributors to this forum voluntarily give their time to help you. If we correctly answer your question, please accept the answer by clicking Accept below it (you'll see it when you're logged on). If an answer doesn't help, feel free to ask for more help or wait for other forum users to add their comments and/or answers.

Whenever an accepted answer helps you, please vote it up using the up arrow on the right. This helps other forum users by giving them confidence in an answer.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment
  • 2 years later...

Hi Paul, 

Just jumping on this thread as I am struggling with the same problem.

From your answer I am taking this to mean I should just be able to swap out the long static1.squarespace with my own domain?  If so I don't think this is working...

For example - the long link is: 
 https://static1.squarespace.com/static/60a24248d1bdf007a7d6d14f/t/60d5e51a7a26701ad72cfce1/1624630555116/Model+Homeworking+Policy_HWW.pdf

If I change this to https://homeworkersww.org.uk/s/Model+Homeworking+Policy_HWW.pdf  it doesn't work.

I am perhaps misunderstanding what you mean though or maybe there is a step I am missing out - any help appreciated.

Thanks, 

Ishbel

Link to comment
7 minutes ago, Ishbel said:

From your answer I am taking this to mean I should just be able to swap out the long static1.squarespace with my own domain? If I change to https://homeworkersww.org.uk/s/Model+Homeworking+Policy_HWW.pdf  it doesn't work.

This link (on your custom domain) worked for me.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Ohhh... yes this does seem to be working for me now too.  Great. Although only if I click on the link (not if I copy & paste it into the address bar? Any idea why that might be?

And just to clarify.  With this new link including the domain - it still then comes up as the static1.squarespace version in the address bar.  Is there a way of changing this or not?

Thanks so much for your help.

Link to comment
12 minutes ago, Ishbel said:

Ohhh... yes this does seem to be working for me now - it still then comes up as the static1.squarespace version in the address bar. Is there a way of changing this or not?

If you are directing visitors to the PDF file itself, you cannot change the default behaviour. As the file is stored on the content delivery network (CDN) it's an important security feature that your browser show the real URL of the file and not the custom link that redirects to it. As this particular PDF only contains text, it may be better to paste the content into a page (or blog post) on the site instead of using a PDF, although that obviously wouldn't be the case for all PDFs. 

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

ok thanks for the info - makes sense.  So I presume this is also the reason that the link doesn't work when I copy and paste it into the address bar?

I do need this particular pdf to be downloadable rather than as page/post -  it is a resource for people to takeaway and use but I will bear that idea in mind for future pdf's...

Link to comment
On 8/2/2021 at 4:59 AM, Ishbel said:

If I change this to https://homeworkersww.org.uk/s/Model+Homeworking+Policy_HWW.pdf  it doesn't work.

That's because the hyperlink above is linked to the long static Squarespace CDN URL (if you hover over it with your mouse tip, you can see the actual URL at the bottom of your Chrome browser).

This is the correct URL that I think you're looking for: https://www.homeworkersww.org.uk/s/Model-Homeworking-Policy_HWW.pdf

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.