Change CSS based on URL - ruby

We have created a heroku app using ruby and would like to change the css, page title and some content based off of the URL used to access the app. How would you go about doing that?

Related

ngnix - rewrite url based on path

I have my next.js app working on http://testdomain.amazonaws.com:443/abc.
Using ngnix configuration, I would like to have https://anotherdomain.com/abc to render my app at http://testdomain.amazonaws.com:443/abc without changing the url in the address bar and also it should take the routes from the next.js app keeping the https://anotherdomain.com.
That is, if user clicks on other links and navigates to other routes like
http://testdomain.amazonaws.com:443/abc/pqr/1 it should become https://anotherdomain.com/abc/pqr/1 in the url.
Can anyone help me understand if we can write a rewrite rule to achieve this in ngnix?

Laravel app name is not showing as wanted

I have a website and it's domain name is
doiniqbazar.com
I developed this site using laravel framework.When i send a link "doiniqbazar.com" to my friends in facebook messenger it show the applicaation name "Laravel".
I changed both .env file and config/app.php file but still not
working.
Is there any procedure to change laravel app name??
This display has nothing necessarily to do with your app name.
It'll grab this from the <title> or og:title meta tags in your HTML. (You may be outputting the APP_NAME value here.)
Facebook has a handy tool for debugging this sort of sharing metadata issue.
Note: It may also be cached. Facebook's debugger reported the same Laravel title in your title tag; when I did a re-scrape it picked up your new title. Apple will likely do the same after a while; I'm not aware of a re-scrape API on their end.
See also: Best Practices for Link Previews in Messages

Creating a public app in shopify using codeigniter

I am new to shopify, I want to create a public app which can communicate with store.
I have created a shopify partner account, an app and setup a Codeigniter project. Also added app url using ngrok.
Can anyone guide me with what should be the next step?
When you say public app I believe that you want to set a view or functionality available to your customers, and that will communicate with your store. Let's say your store is:
https://mystore.myshopify.com
Your App should consider an URL for backend and frontend. Probably the App that you have now is the backend and will be embedded in your Admin Dashboard after you have installed. By now, I'm assuming that you got it done.
Backend: https://4b67b991.ngrok.io/backend
Frontend: https://4b67b991.ngrok.io/frontend
The App you created should have the scope "Online Store" so that you can set up a Proxy App.
Once you set up a Proxy app, with let's say:
Sub path prefix: apps
Subpath: myapp
Proxy URL: https://4b67b991.ngrok.io/frontend
Now, when you go to: https://mystore.myshopify.com/apps/myapp, the proxy URL will be embedded in your store using the header and footer of your theme and in the middle area, you can create your custom functionality using the Shopify API.
Before your app can be embedded in the frontend (with header and footer), you should change the content type of your document. In Laravel I use the following code:
$response = Response::make($contents, 200);
$response->header('Content-Type', 'application/liquid');
Your question is quite general and I'm 100% sure about what you want to achieve, but I believe that it's a starting point.

Magento store home page missing

I am working on a magento store, i have done some change in the admin panel like scope change in store, and update some project using CSV file after that i am seeing a different as a default page on my store.
if i type domain.com/cms correct page is coming, but if i type domain.com page is not correct and it is also without js and css, and not able to if the page in the cms/pages,
also tried system> configuration> design and web chages, but it vain, also tried categories > url rewtire but no luck.
can anybody help me on this.

How to link a specific store view in Magento from outside the store?

I have Magento set up in a multi-language store so that every language has its own store view. I have an HTML landing page where users choose the language they want, and I want to link each store view from the landing page.
I need to create a URL for each specific view so that it can be accessed from the landing page (like my_magento_installation.com/spanish, etc.), outside of the Magento installation. That means that I can't use any core code to get the store view.
I noticed that this URL format:
http://www.my_magento_installation.com/?___store=view_name
...is shown in the URL bar after selecting a specific store view from the default dropdown in Magento. However, if I set up a link with this format from outside the Magento installation, it just redirects to the base URL (www.my_magento_installation.com)
Thanks in advance,
Pau
Pul Vila,here the soap list using soap client of magento list ,for referece here http://www.magentocommerce.com/api/soap/miscellaneous/store.list.html
after using htaccess write url of landing page...https://stackoverflow.com/questions/21433203/donot-want-show-magento-home-using-htaccess-file

Resources