restarone / violet_rails

an app engine for your business. Seamlessly implement business logic with a powerful API. Out of the box CMS, blog, forum and email functionality. Developer friendly & easily extendable for your next SaaS/XaaS project. Built with Rails 6, Devise, Sidekiq & PostgreSQL
https://violet.restarone.solutions
MIT License
95 stars 43 forks source link

social share mapping not working for nikean #1199

Closed donrestarone closed 2 years ago

donrestarone commented 2 years ago

Describe the bug social share works on testnet but not on Nikean.org (eg: https://nikean.org/story-details?id=1404414)

Screen Shot 2022-11-02 at 7 58 29 PM

To Reproduce

Share a link to a HTML API renderer video (eg: https://nikean.org/story-details?id=1404414)

Screen Shot 2022-11-02 at 7 58 39 PM Screen Shot 2022-11-02 at 8 34 14 PM Screen Shot 2022-11-02 at 8 34 03 PM
Pralish commented 2 years ago

RCA

Api html renderer and Api forms both use @api_namespace instance variable. Nikean uses both api form and api html renderer on same page. @api_namespace from api form is overriding the @api_namespace in api html renderer.

FIX: https://github.com/restarone/violet_rails/pull/1227