"Show Full Post" button doesn't work in subfolder installations

So the entire issue here is because the above PR started removing trailing slashes from TopicEmbed in January this year? I feel conflicted about this change. I’d prefer we respect what the admin sends us to be honest.

I think this is the root of our issues.

Can you please run the following @Thiago_Mobilon

url = "https://tecnoblog.net/noticias/governo-renova-app-da-cnh-para-baratear-obtencao-do-documento"

fd = FinalDestination.new(url, validate_uri: true, max_redirects: 5, follow_canonical: true)

uri = fd.resolve

puts uri

html = FinalDestination::HTTP.get(uri)

puts html.truncate(200)

The fd.resolve should be able to add the trailing slash on the puts uri line. I’m afraid it is failing.

1 Like