jumph4x/canonical-rails

Rails 6 how to hide a port?

Winter-Silence opened this issue · 7 comments

Аfter migrating to rails 6 from 5.2, a port was added to the url. How do I hide it?

I would double check your Gemfile delta to see how many releases this gem dependency jumped: https://github.com/jumph4x/canonical-rails/blob/master/app/helpers/canonical_rails/tag_helper.rb#L34-L40

It's likely you're now on the latest version. If that's the case, I would re-generate the config and port over the values.

Checking in, any luck?

I'm sorry I didn't answer. Forcibly added nil for the port parameter

I'm sorry I didn't answer. Forcibly added nil for the port parameter

can you clarify please ?
i have the same issue and i would like to remove port from the link

Checking in, any luck?

it looks like this for me. domainname.com/80:xxxxxx
any idea how to proceed ?

can you clarify please ? i have the same issue and i would like to remove port from the link

I use it like this canonical_tag('host.name', nil, false)

Marking as resolved.