File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -190,13 +190,13 @@ async def fetch_paste(self, request: starlette_plus.Request) -> starlette_plus.R
190
190
tzinfo = datetime .timezone .utc
191
191
)
192
192
193
- url : str = f"{ CONFIG [ 'SERVER' ][ 'domain' ] } /{ identifier } "
194
- raw_url : str = f"{ CONFIG [ 'SERVER' ][ 'domain' ] } /raw/{ identifier } "
193
+ url : str = f"/{ identifier } "
194
+ raw_url : str = f"/raw/{ identifier } "
195
195
security_html : str = ""
196
196
197
197
stored : list [str ] = request .session .get ("pastes" , [])
198
198
if identifier in stored :
199
- security_url : str = f"{ CONFIG [ 'SERVER' ][ 'domain' ] } /api/security/info/{ data ['safety' ]} "
199
+ security_url : str = f"/api/security/info/{ data ['safety' ]} "
200
200
201
201
security_html = f"""
202
202
<div class="identifierHeaderSection">
@@ -281,7 +281,7 @@ async def htmx_save(self, request: starlette_plus.Request) -> starlette_plus.Res
281
281
to_return : dict [str , Any ] = paste .serialize (exclude = ["password" , "password_ok" ])
282
282
identifier : str = to_return ["id" ]
283
283
284
- url : str = f"{ CONFIG [ 'SERVER' ][ 'domain' ] } /{ identifier } "
284
+ url : str = f"/{ identifier } "
285
285
286
286
try :
287
287
(request .session ["pastes" ].append (identifier ))
You can’t perform that action at this time.
0 commit comments