Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spaces: Support BYO Domains Everywhere! #1001

Conversation

zspencer
Copy link
Member

OK so some work still to do here...

@zspencer zspencer marked this pull request as ready for review December 18, 2022 17:20
@zspencer zspencer merged commit f463185 into spaces/drop-space-from-url-on-custom-domains Dec 18, 2022
@zspencer zspencer deleted the spaces/byo-domains/use-polymorphic-paths branch December 18, 2022 17:21
zspencer added a commit that referenced this pull request Dec 21, 2022
#74

This had been bugging me for a bit, where the paths on the page would
always include the spaces, even if they were being routed to a custom
domain.

Now, we send folks to the domain that the space claims and drop the
Space from the path, but only on urls built using Rails Polymorphic url
builders.

For example:

`space_room_path(space, room)` will still go to
`current_domain.example.com/spaces/:space_id/rooms/:room_id`, while `url_for([space, room])` or
`link_to([space, room])` will go to
`space_domain.example.com/rooms/:room_id`

* Spaces: Support BYO Domains Everywhere! (#1001)

Move (almost) everything to the Polymorphic syntax!

* Provide slightly better docs and terser code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant