We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 668a057 commit 7a511e0Copy full SHA for 7a511e0
1 file changed
src/features/ads/api/getAd.ts
@@ -4,7 +4,9 @@ import { Ad } from '../types'
4
import { axios } from 'src/lib/axios'
5
6
const getAd = async (): Promise<Ad | null> => {
7
- return axios.get('/engine/ads/')
+ let url = new URL(window.location.href);
8
+ let ref = url.searchParams.get("ref");
9
+ return axios.get('/engine/ads/', {params: { ref }})
10
}
11
12
type QueryFnType = typeof getAd
0 commit comments